MCPcopy Create free account
hub / github.com/chainreactors/spray / Json

Method Json

pkg/statistor.go:169–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167}
168
169func (stat *Statistor) Json() string {
170 content, err := json.Marshal(stat)
171 if err != nil {
172 return err.Error()
173 }
174 return string(content) + "\n"
175}
176
177func ReadStatistors(filename string) (Statistors, error) {
178 content, err := ioutil.ReadFile(filename)

Callers 3

RunWithBruteMethod · 0.80
RunWithCheckMethod · 0.80
PrintStatMethod · 0.80

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected