Original post

Hi, can someone give me a link or even copy paste a very well-written SIMPLE Golang code that follows the formatting rules of the Go language? I don’t want something complicated but at the same time covers every or most of the formatting rules

Such as:
do variables use camel case as js or underscores? what about function names?
How about struct and interfaces? Does a method use self as python or the lower case of its struct or just the first letter? How many spaces are there between a function and other things? are they two as in python or what? and many more things like those

I know these things don’t really matter but I would like to be a professional with Go. Using underscores in JavaScript will be weird and make it harder to work with a team when everyone is going into his own of what he thinks is right

Thanks :slight_smile: