MCPcopy Create free account
hub / github.com/entireio/git-sync / marshalOutput

Function marshalOutput

cmd/git-sync/root.go:61–67  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

59}
60
61func marshalOutput(value interface{}) ([]byte, error) {
62 data, err := json.MarshalIndent(value, "", " ")
63 if err != nil {
64 return nil, fmt.Errorf("marshal JSON: %w", err)
65 }
66 return data, nil
67}

Callers 2

printOutputFunction · 0.85

Calls

no outgoing calls

Tested by 1