MCPcopy Create free account
hub / github.com/anchordotdev/cli / Matches

Method Matches

api/api.go:548–554  ·  view source on GitHub ↗
(val string)

Source from the content-addressed store, hash-verified

546type mediaTypes []string
547
548func (s mediaTypes) Matches(val string) bool {
549 media, _, err := mime.ParseMediaType(val)
550 if err != nil {
551 return false
552 }
553 return slices.Contains(s, media)
554}
555
556type StatusCodeError int
557

Callers 1

api.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected