MCPcopy Index your code
hub / github.com/docker/cli / IsJSON

Method IsJSON

cli/command/formatter/formatter.go:37–39  ·  view source on GitHub ↗

IsJSON returns true if the format is the JSON format

()

Source from the content-addressed store, hash-verified

35
36// IsJSON returns true if the format is the JSON format
37func (f Format) IsJSON() bool {
38 return string(f) == JSONFormatKey
39}
40
41// Contains returns true if the format contains the substring
42func (f Format) Contains(sub string) bool {

Callers 1

TestFormatFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestFormatFunction · 0.64