Resolver is now used behind a pointer

This commit is contained in:
Sasha Koshka 2024-03-26 13:12:38 -04:00
parent b9e0b3265e
commit 9b45bc56d4
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ import "git.tebibyte.media/fspl/fspl/parser/meta"
import ferrors "git.tebibyte.media/fspl/fspl/errors"
type Compiler struct {
Resolver
*Resolver
cli.Logger
Output string

View File

@ -21,8 +21,8 @@ type Resolver struct {
}
// NewResolver creates a new resolver with os.DirFS("/").
func NewResolver (path ...string) Resolver {
return Resolver {
func NewResolver (path ...string) *Resolver {
return &Resolver {
FS: os.DirFS("/"),
Path: path,
}