ran gofmt on working examples