Go Programming Cheatsheet

Comments Comments in go are much like PHP except that it does not support using # as an alternative to //. // This is a single line comment /* * This is a * multi-line comment */ Variables Variables are typed in Go. E.g. they must be declared as a string, int etc. Variables are initialized…

Read this article

Install Go on Linux

In order to install go on Linux, copy, paste, and execute the following command: curl -s https://scripts.programster.org/scripts/15?output=raw | bash ... or copy, paste, and execute the following script: #!/bin/bash if ! [ -n "$BASH_VERSION" ];then echo "this is not bash, calling self with bash...."; SCRIPT=…

Read this article