Random Go code from trying to learn and test stuff.