MCPcopy Index your code
hub / github.com/TruthHun/BookStack / GetOptionValue

Function GetOptionValue

models/options.go:77–82  ·  view source on GitHub ↗
(key, def string)

Source from the content-addressed store, hash-verified

75}
76
77func GetOptionValue(key, def string) string {
78 if option, err := NewOption().FindByKey(key); err == nil {
79 return option.OptionValue
80 }
81 return def
82}
83
84func (p *Option) InsertOrUpdate() error {
85 defer func() {

Callers 15

IndexMethod · 0.92
ReadMethod · 0.92
forbidGeneralRoleMethod · 0.92
IndexMethod · 0.92
APPMethod · 0.92
ResultMethod · 0.92
BannersMethod · 0.92
LatestVersionMethod · 0.92
IsAllowReadChapterMethod · 0.85
UpdateSignRuleMethod · 0.85
ListsMethod · 0.85
InitFunction · 0.85

Calls 2

NewOptionFunction · 0.85
FindByKeyMethod · 0.80

Tested by

no test coverage detected