package zones type Zones struct { basedir string } func New(dir string) (*Zones, error) { z := &Zones{ basedir: dir, } if err := z.Scan(); err != nil { return nil, err } return z, nil }