MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / unmarshalHomeModelsTopLevel

Function unmarshalHomeModelsTopLevel

internal/api/server.go:1336–1345  ·  view source on GitHub ↗
(raw []byte)

Source from the content-addressed store, hash-verified

1334}
1335
1336func unmarshalHomeModelsTopLevel(raw []byte) (map[string]json.RawMessage, bool) {
1337 if len(raw) == 0 {
1338 return nil, false
1339 }
1340 var top map[string]json.RawMessage
1341 if errUnmarshal := json.Unmarshal(raw, &top); errUnmarshal != nil {
1342 return nil, false
1343 }
1344 return top, true
1345}
1346
1347func decodeHomeModels(raw []byte) ([]homeModelEntry, error) {
1348 if len(raw) == 0 {

Callers 2

homeModelsErrorTypeFunction · 0.85
homeModelsErrorMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected