1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 18:40:40 +00:00

add InitToml and fmt code

This commit is contained in:
王厚伟
2020-11-26 14:15:00 +08:00
parent 62abed87e9
commit b8213eba24
4 changed files with 22 additions and 5 deletions

View File

@ -36,7 +36,7 @@ func init() {
func runFix(cmd *commands.Command, args []string) int {
t := target.String()
if t == "" || t == "1.6"{
if t == "" || t == "1.6" {
return fixTo16(cmd, args)
} else if strings.HasPrefix(t, "2") {
// upgrade to v2

View File

@ -1,4 +1,4 @@
// Copyright 2020
// Copyright 2020
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -46,4 +46,4 @@ func runShell(cmdStr string) error {
return err
}
return nil
}
}

View File

@ -1,4 +1,4 @@
// Copyright 2020
// Copyright 2020
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -228,4 +228,3 @@ func fixFile(file string) error {
}
return ioutil.WriteFile(file, []byte(fixed), 0666)
}