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

Function where

script/ghmock/set.go:427–432  ·  view source on GitHub ↗

where names a position in the body for error messages.

(walked string)

Source from the content-addressed store, hash-verified

425
426// where names a position in the body for error messages.
427func where(walked string) string {
428 if walked == "" {
429 return "body"
430 }
431 return walked
432}
433
434func decodeJSON(data []byte, v any) error {
435 dec := json.NewDecoder(bytes.NewReader(data))

Callers 2

setPathFunction · 0.85
missingChildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected