Golang package review and related question