Description
Error initial compiling
To Reproduce
Steps to reproduce the behaviour:
# github.com/wailsapp/wails/cmd
C:\Users\u\go\src\github.com\wailsapp\wails\cmd\templates.go:50:18: too many arguments in call to entries.AddSlice
have ([]string, error)
want ([]string)
C:\Users\u\go\src\github.com\wailsapp\wails\cmd\templates.go:105:28: too many arguments in call to templateFilenames.AddSlice
have ([]string, error)
want ([]string)
Expected behaviour
Successful compiling

System Details
Windows 10 64 bit
Having this same issue on osx 10.11.6:-
go get github.com/wailsapp/wails/cmd/wails
# github.com/wailsapp/wails/cmd
go/src/github.com/wailsapp/wails/cmd/templates.go:50:18: too many arguments in call to entries.AddSlice
have ([]string, error)
want ([]string)
go/src/github.com/wailsapp/wails/cmd/templates.go:105:28: too many arguments in call to templateFilenames.AddSlice
have ([]string, error)
want ([]string)
11:09:33 ~$ go version
go version go1.11.1 darwin/amd64
Hi. This happens when you don't have your GO111MODULE environment variable set. I've improved the docs to make this more explicit.
It shouldn't do what it's doing however that code has already been rewritten and is almost ready for release. In fact, it may be out today.
I added
SET GO111MODULE=on
And works perfect for me
Thank you!
That strange as if I added GO111MODULE=on I will bump into this issue and the recommendation there is to turn off GO111MODULE=on.
11:09:33 ~$ go version
go version go1.11.1 darwin/amd64
05:00:37 ~$ export GO111MODULE=on
05:00:42 ~$ go get github.com/wailsapp/wails/cmd/wails
go: cannot find main module; see 'go help modules'
Interesting. You could just use go 1.12. That being said, the issue above should be fixed now. Let me know!
Most helpful comment
I added
SET GO111MODULE=onAnd works perfect for me
Thank you!