statik
statik copied to clipboard
Compilation error in main.go
The line 9 in rakyll/statik/example/main.go
_ "github.com/rakyll/statik/example/statik"
is giving an error during our build :
_vendor/github.com/rakyll/statik/example/main.go:9:2: cannot find package "github.com/rakyll/statik/example/statik" in any of: /root/go/src/github.com/***/go/vendor/github.com/rakyll/statik/example/statik (vendor tree) /usr/local/go/src/github.com/rakyll/statik/example/statik (from $GOROOT) /root/go/src/github.com/rakyll/statik/example/statik (from $GOPATH)_
Deleting that line fixes the issue.
The package was installed using
_go get -v -u -f github.com/rakyll/statik_