based on the golang v1.1 beta2