hey @Raphael, did you ever find how to resolve this issue? I have a similar problem where I can compile on mac but not linux
On Thursday, March 29, 2018 at 6:01:55 AM UTC+2 raphae...@gmail.com wrote: > Hi, > > Sorry to revive an age old thread, but I'm encountering this error and it > seems my files are already utf-8: > > $ file -I main.go > > main.go: text/x-c; charset=utf-8 > > $ file -I cmd/root.go > > cmd/root.go: text/x-c; charset=utf-8 > > Is there any programmatic way to detect the messed up character? Possibly > this is not the exact issue, because my file compiles on mac but not linux. > > Best wishes, > Raphael Deem > > > > > On Sunday, January 5, 2014 at 3:30:20 AM UTC-8, John Melvic wrote: >> >> Dear all, >> >> I run into this error with my first go app. Would anyone please give me >> some tips? >> >> Error >> >> W:\source\go\src>go install github.com\user\hello >> >> can't load package: package github.com/user/hello: read >> W:\source\go\src\github. >> com\user\hello\hello.go: *unexpected NUL in input* >> >> >> Source >> >> // You can edit this code! >> >> // Click here and start typing. >> >> package main >> >> >> import "fmt" >> >> >> func main() { >> >> fmt.Println("Hello") >> >> } >> >> >> Thanks, >> >> John >> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/f16b65b3-8bb9-4e2b-8fbd-cb28ea71de3bn%40googlegroups.com.