mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 02:10:00 +08:00
chore: fix typos (#5210)
This commit is contained in:
@@ -92,7 +92,7 @@ Port: 0
|
|||||||
Path: "/",
|
Path: "/",
|
||||||
Handler: nil,
|
Handler: nil,
|
||||||
}, WithJwt("thesecret"), WithSignature(SignatureConf{}),
|
}, WithJwt("thesecret"), WithSignature(SignatureConf{}),
|
||||||
WithJwtTransition("preivous", "thenewone"))
|
WithJwtTransition("previous", "thenewone"))
|
||||||
|
|
||||||
func() {
|
func() {
|
||||||
defer func() {
|
defer func() {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"github.com/zeromicro/go-zero/tools/goctl/util/format"
|
"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 {
|
func BeforeCommands(dir, style string) error {
|
||||||
if err := migrateBefore1_3_4(dir, style); err != nil {
|
if err := migrateBefore1_3_4(dir, style); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ func Install(cacheDir string) (string, error) {
|
|||||||
case vars.OsLinux:
|
case vars.OsLinux:
|
||||||
downloadUrl = url[fmt.Sprintf("%s_%d", vars.OsLinux, bit)]
|
downloadUrl = url[fmt.Sprintf("%s_%d", vars.OsLinux, bit)]
|
||||||
default:
|
default:
|
||||||
return "", fmt.Errorf("unsupport OS: %q", goos)
|
return "", fmt.Errorf("unsupported OS: %q", goos)
|
||||||
}
|
}
|
||||||
|
|
||||||
err := downloader.Download(downloadUrl, tempFile)
|
err := downloader.Download(downloadUrl, tempFile)
|
||||||
|
|||||||
Reference in New Issue
Block a user