diff --git a/rest/server_test.go b/rest/server_test.go index a0b0fbe1f..e090294fc 100644 --- a/rest/server_test.go +++ b/rest/server_test.go @@ -92,7 +92,7 @@ Port: 0 Path: "/", Handler: nil, }, WithJwt("thesecret"), WithSignature(SignatureConf{}), - WithJwtTransition("preivous", "thenewone")) + WithJwtTransition("previous", "thenewone")) func() { defer func() { diff --git a/tools/goctl/model/sql/command/migrationnotes/migrationnotes.go b/tools/goctl/model/sql/command/migrationnotes/migrationnotes.go index 8de49a590..c04c36ed5 100644 --- a/tools/goctl/model/sql/command/migrationnotes/migrationnotes.go +++ b/tools/goctl/model/sql/command/migrationnotes/migrationnotes.go @@ -5,7 +5,7 @@ import ( "github.com/zeromicro/go-zero/tools/goctl/util/format" ) -// BeforeCommands run before comamnd run to show some migration notes +// BeforeCommands run before command run to show some migration notes func BeforeCommands(dir, style string) error { if err := migrateBefore1_3_4(dir, style); err != nil { return err diff --git a/tools/goctl/pkg/protoc/protoc.go b/tools/goctl/pkg/protoc/protoc.go index 0db64de9f..089e357bc 100644 --- a/tools/goctl/pkg/protoc/protoc.go +++ b/tools/goctl/pkg/protoc/protoc.go @@ -43,7 +43,7 @@ func Install(cacheDir string) (string, error) { case vars.OsLinux: downloadUrl = url[fmt.Sprintf("%s_%d", vars.OsLinux, bit)] default: - return "", fmt.Errorf("unsupport OS: %q", goos) + return "", fmt.Errorf("unsupported OS: %q", goos) } err := downloader.Download(downloadUrl, tempFile)