$ od -ta main.go | grep nul
might work if NUL is the problem.

V.

On Thursday, 29 March 2018 06:01:55 UTC+2, Raphael Deem 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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to