Ran `make update-dependencies`

https://mattermost.atlassian.net/browse/MM-32961
Этот коммит содержится в:
Agniva De Sarker
2021-03-09 11:26:42 +05:30
коммит произвёл GitHub
родитель 9858413ed2
Коммит 91099818df
696 изменённых файлов: 19751 добавлений и 6505 удалений

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