diff --git a/localconfig/localconfig.go b/localconfig/localconfig.go index ed2840c..3c96fc7 100644 --- a/localconfig/localconfig.go +++ b/localconfig/localconfig.go @@ -2,16 +2,17 @@ package localconfig import ( "io" - "io/ioutil" + "os" "strings" yaml "gopkg.in/yaml.v2" ) type Config struct { - Clusters []*Cluster - Hosts []*Host - SSLConfig string + Clusters []*Cluster + Hosts []*Host + HostTemplates []*Host + SSLConfig string } type Cluster struct { @@ -29,7 +30,7 @@ func FromBytes(data []byte) (*Config, error) { } func FromFile(path string) (*Config, error) { - ba, err := ioutil.ReadFile(path) + ba, err := os.ReadFile(path) if err != nil { return nil, err }