MM-32961: Bump dependencies (#17016)
Ran `make update-dependencies` https://mattermost.atlassian.net/browse/MM-32961
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9858413ed2
Коммит
91099818df
12
vendor/github.com/prometheus/common/model/time.go
сгенерированный
поставляемый
12
vendor/github.com/prometheus/common/model/time.go
сгенерированный
поставляемый
@@ -254,6 +254,18 @@ func (d Duration) String() string {
|
||||
return r
|
||||
}
|
||||
|
||||
// MarshalText implements the encoding.TextMarshaler interface.
|
||||
func (d *Duration) MarshalText() ([]byte, error) {
|
||||
return []byte(d.String()), nil
|
||||
}
|
||||
|
||||
// UnmarshalText implements the encoding.TextUnmarshaler interface.
|
||||
func (d *Duration) UnmarshalText(text []byte) error {
|
||||
var err error
|
||||
*d, err = ParseDuration(string(text))
|
||||
return err
|
||||
}
|
||||
|
||||
// MarshalYAML implements the yaml.Marshaler interface.
|
||||
func (d Duration) MarshalYAML() (interface{}, error) {
|
||||
return d.String(), nil
|
||||
|
||||
Ссылка в новой задаче
Block a user