MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / electionCyclePeriod

Method electionCyclePeriod

modules/elections/elections.go:186–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184}
185
186func (m *ElectionsModule) electionCyclePeriod() string {
187 if v, ok := m.plug.Config.Get(`ElectionCyclePeriod`).(string); ok {
188 return v
189 }
190 return `1 year`
191}
192
193func (m *ElectionsModule) titleColor() string {
194 if v, ok := m.plug.Config.Get(`TitleColor`).(string); ok && v != `` {

Callers 1

onNewRoundMethod · 0.95

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected