* replace interface{} with any
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-07-05 09:46:50 +03:00
коммит произвёл GitHub
родитель b45ff0be5d
Коммит 717a4d04a9
258 изменённых файлов: 1286 добавлений и 1286 удалений

Просмотреть файл

@@ -56,8 +56,8 @@ func StatusListToJSON(u []*Status) ([]byte, error) {
return json.Marshal(list)
}
func StatusMapToInterfaceMap(statusMap map[string]*Status) map[string]interface{} {
interfaceMap := map[string]interface{}{}
func StatusMapToInterfaceMap(statusMap map[string]*Status) map[string]any {
interfaceMap := map[string]any{}
for _, s := range statusMap {
// Omitted statues mean offline
if s.Status != StatusOffline {