diff --git a/examples/client.go b/examples/client.go index d9e2d14..7a6b6d0 100644 --- a/examples/client.go +++ b/examples/client.go @@ -36,7 +36,7 @@ func init() { log.Fatal(err) } - hostsfile, err = tofu.NewHostsFile(path) + hostsfile, err = tofu.OpenHostsFile(path) if err != nil { log.Fatal(err) }