Brainstorming with functions in Golang