MCPcopy Index your code
hub / github.com/cortexproject/cortex / Set

Method Set

pkg/util/flagext/url.go:19–26  ·  view source on GitHub ↗

Set implements flag.Value

(s string)

Source from the content-addressed store, hash-verified

17
18// Set implements flag.Value
19func (v *URLValue) Set(s string) error {
20 u, err := url.Parse(s)
21 if err != nil {
22 return err
23 }
24 v.URL = u
25 return nil
26}
27
28// UnmarshalYAML implements yaml.Unmarshaler.
29func (v *URLValue) UnmarshalYAML(unmarshal func(any) error) error {

Calls 1

ParseMethod · 0.80