diff --git a/core/mr/mapreduce.go b/core/mr/mapreduce.go index 1734f7ce9d74..108c505e11d5 100644 --- a/core/mr/mapreduce.go +++ b/core/mr/mapreduce.go @@ -145,7 +145,7 @@ func MapReduceChan(source <-chan interface{}, mapper MapperFunc, reducer Reducer return mapReduceWithPanicChan(source, panicChan, mapper, reducer, opts...) } -// MapReduceChan maps all elements from source, and reduce the output elements with given reducer. +// mapReduceWithPanicChan maps all elements from source, and reduce the output elements with given reducer. func mapReduceWithPanicChan(source <-chan interface{}, panicChan *onceChan, mapper MapperFunc, reducer ReducerFunc, opts ...Option) (interface{}, error) { options := buildOptions(opts...) diff --git a/tools/goctl/kube/kube.go b/tools/goctl/kube/kube.go index dc701be88d57..03ba20289f27 100644 --- a/tools/goctl/kube/kube.go +++ b/tools/goctl/kube/kube.go @@ -49,7 +49,7 @@ type Deployment struct { ImagePullPolicy string } -// DeploymentCommand is used to generate the kubernetes deployment yaml files. +// deploymentCommand is used to generate the kubernetes deployment yaml files. func deploymentCommand(_ *cobra.Command, _ []string) error { nodePort := varIntNodePort home := varStringHome diff --git a/tools/goctl/upgrade/upgrade.go b/tools/goctl/upgrade/upgrade.go index 1f373cfb110e..7d96bf0f936d 100644 --- a/tools/goctl/upgrade/upgrade.go +++ b/tools/goctl/upgrade/upgrade.go @@ -8,7 +8,7 @@ import ( "github.com/zeromicro/go-zero/tools/goctl/rpc/execx" ) -// Upgrade gets the latest goctl by +// upgrade gets the latest goctl by // go install github.com/zeromicro/go-zero/tools/goctl@latest func upgrade(_ *cobra.Command, _ []string) error { cmd := `GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/go-zero/tools/goctl@latest`