(s string)
| 40 | } |
| 41 | |
| 42 | func (c *Config) Set(s string) error { |
| 43 | if _, _, err := net.SplitHostPort(s); err != nil { |
| 44 | return err |
| 45 | } |
| 46 | c.URL.Host = s |
| 47 | return nil |
| 48 | } |
| 49 | |
| 50 | func (c *Config) String() string { |
| 51 | return c.URL.Host |
no outgoing calls
no test coverage detected