MCPcopy Create free account
hub / github.com/prometheus/common / Set

Method Set

model/time.go:174–178  ·  view source on GitHub ↗

Set implements pflag/flag.Value

(s string)

Source from the content-addressed store, hash-verified

172
173// Set implements pflag/flag.Value
174func (d *Duration) Set(s string) error {
175 var err error
176 *d, err = ParseDuration(s)
177 return err
178}
179
180// Type implements pflag.Value
181func (d *Duration) Type() string {

Callers 10

RoundTripMethod · 0.45
StaticFileServerFunction · 0.45
SerialNumberFunction · 0.45
TestNewClientFromConfigFunction · 0.45
RoundTripMethod · 0.45
RoundTripMethod · 0.45
mapToValuesFunction · 0.45
RoundTripMethod · 0.45

Calls 1

ParseDurationFunction · 0.85

Tested by 3

TestNewClientFromConfigFunction · 0.36