How to parse JSON in GO

1 minute read

The go standard library has all you json needs covered. The JSON package has methods for both encoding and decoding to/from JSON.

How to Read a file in Go

less than 1 minute read

In go you will sometimes write more code than you are used to in e.g. most higher level languages (think php, ruby, python) - but will have a lot more contro...

How to Read from stdin in Go

less than 1 minute read

Reading from stdin in go is as easy as reading from os.Stdin - the ioutil.ReadAll method reads all bytes into a buffer and allows you to handle the input onc...

How to Read Program Arguments in Go

less than 1 minute read

There seems to be two schools of program options reading in programming languages. Those who have a main method where arguments are explicitly mentioned in t...