1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

app/types/size.go: Add UnmarshalText

This commit is contained in:
Henrik Hautakoski 2024-02-17 15:17:12 +01:00
parent 59480533d3
commit d43ef7f7ff

View file

@ -34,3 +34,7 @@ func (s Size) String() string {
func (s *Size) UnmarshalYAML(value *yaml.Node) error {
return s.Parse(value.Value)
}
func (s *Size) UnmarshalText(text []byte) error {
return s.Parse(string(text))
}