Files
micro-client-http/builder/body_option.go
pugnack 24801750a7
Some checks failed
coverage / build (push) Successful in 2m19s
test / test (push) Failing after 17m15s
integrate request builder into HTTP client for googleapis support (#157)
2025-09-23 13:30:15 +03:00

23 lines
404 B
Go

package builder
const (
singleWildcard string = "*"
doubleWildcard string = "**"
)
type bodyOption string
func (o bodyOption) String() string { return string(o) }
func (o bodyOption) isFullBody() bool {
return o.String() == singleWildcard
}
func (o bodyOption) isWithoutBody() bool {
return o == ""
}
func (o bodyOption) isSingleField() bool {
return o != "" && o.String() != singleWildcard
}