Member-only story
The Gophers and I continue our versus against Go Lang.
After 30 days here’s what I’ve learnt.
Install Go
- https://go.dev/doc/install
Go Doc
- https://go.dev/doc/
Go was:
- Created by Google in 2007.
- Is a static typed language
Known applications written in Go
- Docker
- Kubernetes
Create Go file
- create a file with a .go extension example (superhere.go)
Comments
To add a single line comments to your Go program use double forward slashes. // This indicates a comment
To add a multi line line comments to your Go program use /* to open and */ to close it.
/* This indicates
a multi line
comment */
Go Types
-Boolean type. This is either true
or false
-String type. A sequence of bytes. This can be letter, numbers, characters, empty.
-Numerical type. This is a integer or float.
-Array type. A numbered sequence of element of the same type.