Files
dodo/pkg/types/body.go
2025-09-04 23:00:57 +04:00

24 lines
392 B
Go

package types
type Body string
func (body Body) String() string {
return string(body)
}
type Bodies []Body
func (bodies *Bodies) Append(body ...Body) {
*bodies = append(*bodies, body...)
}
func (bodies *Bodies) Parse(rawValues ...string) {
for _, rawValue := range rawValues {
bodies.Append(ParseBody(rawValue))
}
}
func ParseBody(rawValue string) Body {
return Body(rawValue)
}