MCPcopy
hub / github.com/larksuite/cli / dryRunFormatValue

Function dryRunFormatValue

internal/cmdutil/dryrun.go:198–208  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

196}
197
198func dryRunFormatValue(v interface{}) string {
199 switch val := v.(type) {
200 case string:
201 return val
202 case nil:
203 return ""
204 default:
205 j, _ := json.Marshal(val)
206 return string(j)
207 }
208}
209
210func encodeParams(params map[string]interface{}) string {
211 vals := url.Values{}

Callers 2

TestDryRunFormatValueFunction · 0.85
FormatMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestDryRunFormatValueFunction · 0.68