idiomatic go and code organization