I know its a bit too early, but I've been trying out Go (Google's Programming Language) and its kindof annoying to write code in gedit.
So, my question: What do you use to experiment with Go?
Semicolons. Like C, Go's formal grammar uses semicolons to terminate statements, but unlike in C, those semicolons do not appear in the source.
If you write to a closed channel, your program will panic (see http://play.golang.org/p/KU7MLrFQSx for example). You could potentially catch this error with recover , but being in a situation where you don't know whether the channel you are writing to is open is usually a sign of a bug in the program.
under $GOROOT/misc there are syntax highlighting files for emacs, vim, xcode and kate. Using any of these editors should do.
Somebody in the #go-nuts irc channel has a Go syntax file for gedit, so I would ask there if you want that.
I personally use what Rob Pike and Russ Cox use: acme. And I know Ken Thompson still uses sam.
Edit: For those interested, I have created a page to collect Go syntax highlighting files for various text editors. If you have any that is not included there let me know and I'll be happy to add it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With