Files
micro-client-http/builder/body_option.go
pugnack c757127453
All checks were successful
coverage / build (push) Successful in 2m19s
test / test (push) Successful in 2m27s
integrate request builder into HTTP client for googleapis support (#159)
2025-10-03 08:39:44 +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
}