Skip to content

Instantly share code, notes, and snippets.

@shamun
Created December 27, 2011 19:01
Show Gist options
  • Save shamun/1524800 to your computer and use it in GitHub Desktop.
Save shamun/1524800 to your computer and use it in GitHub Desktop.
------------- now
[sun@example bin]$ od -c main.go
0000000 p a c k a g e m a i n \n \n i m
0000020 p o r t f m t " f m t " \n \n
0000040 f u n c m a i n ( ) { \n
0000060 f m t . P r i n t l n ( " H e l
0000100 l o , 344 270 226 347 225 214 " ) \n } \n \n
0000120
------------ before
package main
import fmt "fmt"
func main() {
fmt.Println("Hello, 世界")
}
[sun@example bin]$ ./8g main.go 8l main.8
8l:1: illegal character 0x7f
8l:1: package statement must be first
8l:1: illegal character 0x1
8l:1: illegal NUL byte
8l:1: illegal character 0x0
8l:1: illegal NUL byte
8l:1: illegal character 0x0
8l:1: illegal NUL byte
8l:1: too many errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment