MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetAnnouncements

Function GetAnnouncements

setting/console_setting/validation.go:225–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223}
224
225func GetAnnouncements() []map[string]interface{} {
226 list := getJSONList(GetConsoleSetting().Announcements)
227 sort.SliceStable(list, func(i, j int) bool {
228 return getPublishTime(list[i]).After(getPublishTime(list[j]))
229 })
230 return list
231}
232
233func GetFAQ() []map[string]interface{} {
234 return getJSONList(GetConsoleSetting().FAQ)

Callers 1

GetStatusFunction · 0.92

Calls 3

getJSONListFunction · 0.85
GetConsoleSettingFunction · 0.85
getPublishTimeFunction · 0.85

Tested by

no test coverage detected