Skip to content

Commit

Permalink
fix: the default goversion is different with the usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tomguo committed Jan 9, 2024
1 parent b468acf commit de32871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/create/cmdflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func addOutputFlags(createCmd *cobra.Command) {
"rpconly defaults to the current directory)")
createCmd.Flags().BoolP("force", "f", false, "Force overwrite existing code")
createCmd.Flags().StringP("mod", "m", "", "Specify the go module, default: trpc.app.${pb.package}")
createCmd.Flags().String("goversion", "1.18", "Specify the Go version in the generated go.mod file, default: 1.12")
createCmd.Flags().String("goversion", "1.18", "Specify the Go version in the generated go.mod file, default: 1.18")
createCmd.Flags().String("trpcgoversion", "",
"Specify the trpc-go version in the generated go.mod file")
createCmd.Flags().Bool("mock", true,
Expand Down
5 changes: 3 additions & 2 deletions gobin/assets.go

Large diffs are not rendered by default.

0 comments on commit de32871

Please sign in to comment.