| 7 | ) |
| 8 | |
| 9 | type Config struct { |
| 10 | Laddr string `json:"laddr"` |
| 11 | Port int `json:"port"` |
| 12 | ProxyTo string `json:"proxy_to"` |
| 13 | KeyFile string `json:"key_file"` |
| 14 | CertFile string `json:"cert_file"` |
| 15 | } |
| 16 | |
| 17 | func LoadConfig(path string) (*Config, error) { |
| 18 | configFile, err := os.Open(path) |
nothing calls this directly
no outgoing calls
no test coverage detected