Here is an implementation of fibonacci sequence in Go using both loops and recursion:
Using loops:
main.go175 chars9 lines
Using recursion:
main.go139 chars7 lines
You can call the functions like this:
main.go154 chars6 lines
gistlibby LogSnag