MCPcopy Create free account
hub / github.com/cli/cli / jsonKind

Function jsonKind

script/ghmock/set.go:447–458  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

445}
446
447func jsonKind(v any) string {
448 switch v.(type) {
449 case string:
450 return "string"
451 case json.Number:
452 return "number"
453 case bool:
454 return "boolean"
455 default:
456 return fmt.Sprintf("%T", v)
457 }
458}
459
460func describeResponse(name string, list []response, pos int) string {
461 r := list[pos]

Callers 1

setPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected