MCPcopy Create free account
hub / github.com/deepflowio/deepflow / JsonFormat

Function JsonFormat

cli/ctl/common/http_util.go:234–241  ·  view source on GitHub ↗
(jsonByte []byte)

Source from the content-addressed store, hash-verified

232}
233
234func JsonFormat(jsonByte []byte) (string, error) {
235 var str bytes.Buffer
236 err := json.Indent(&str, jsonByte, "", " ")
237 if err != nil {
238 return "", err
239 }
240 return str.String(), nil
241}
242
243// GetByFilter 通过 Get 方法获取数据,自动拼接 url param 参数
244func GetByFilter(url string, body, filters map[string]interface{}, opts ...HTTPOption) (*simplejson.Json, error) {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected