forgejo/modules/setting/f3.go
Earl Warren 1fa617cb5e
[F3] setting [F3].ENABLED
(cherry picked from commit b11c68b734)
2024-02-03 09:25:26 +01:00

22 lines
355 B
Go

// SPDX-License-Identifier: MIT
package setting
import (
"code.gitea.io/gitea/modules/log"
)
// Friendly Forge Format (F3) settings
var (
F3 = struct {
Enabled bool
}{
Enabled: false,
}
)
func loadF3From(rootCfg ConfigProvider) {
if err := rootCfg.Section("F3").MapTo(&F3); err != nil {
log.Fatal("Failed to map F3 settings: %v", err)
}
}