Musing around writing an API in Go