Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do you use to write Go [closed]

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?

like image 615
GaiusSensei Avatar asked Nov 13 '09 19:11

GaiusSensei


People also ask

Does semicolon use 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.

What happens if you write to a closed channel Golang?

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.


2 Answers

under $GOROOT/misc there are syntax highlighting files for emacs, vim, xcode and kate. Using any of these editors should do.

like image 124
2 revs Avatar answered Oct 11 '22 07:10

2 revs


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.

like image 12
uriel Avatar answered Oct 11 '22 06:10

uriel