Install
go get github.com/dant89/go-examples

Documentation

Go examples

A place to store Go examples learned from pariticipating in this 3 course series 💻:

Go tips

  • Go is a compiled language
  • Garbage collection is enabled in the background 🚮

Comments:

// Single line comment

/* Block comment 1
   Block comment 2 */

Variable assignment:

// camelCase for variables
var floatOne float = 1.23
floatTwo := float(2.34)

Go helpers

  • go fmt file.go Can be used to apply syntax correction to Go files for tidy up