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

Method Contains

cli/command/formatter/formatter.go:42–44  ·  view source on GitHub ↗

Contains returns true if the format contains the substring

(sub string)

Source from the content-addressed store, hash-verified

40
41// Contains returns true if the format contains the substring
42func (f Format) Contains(sub string) bool {
43 return strings.Contains(string(f), sub)
44}
45
46// templateString pre-processes the format and returns it as a string
47// for templating.

Calls

no outgoing calls