rakyll / statik

Embed files into a Go executable
Apache License 2.0
3.75k stars 225 forks source link

undefined: fs.RegisterWithNamespace #104

Closed semyon-dev closed 4 years ago

semyon-dev commented 4 years ago

I am trying to build (GOOS=linux GOARCH=amd64 go build app/main.go) but getting this error: app/statik/statik.go:12:2: undefined: fs.RegisterWithNamespace \ \ code from auto generated statik: fs.RegisterWithNamespace("default", data)

how to resolve this?

jcchavezs commented 4 years ago

What version of statik are you using?

semyon-dev commented 4 years ago

last version (v0.1.6)

semyon-dev commented 4 years ago

Thanks for so fast reply, I just updated go.mod via go get and it's working now: go get -u github.com/rakyll/statik@46bd79c4540341fe472fe71dd2ce0ccd4e635450