Ai
1 Star 0 Fork 0

zhen/go_demo_keyauth

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
init.go 464 Bytes
Copy Edit Raw Blame History
zhen authored 2023-04-25 16:50 +08:00 . 权限认证
package cmd
import (
"github.com/spf13/cobra"
)
var (
createTableFilePath string
)
// initCmd represents the start command
var initCmd = &cobra.Command{
Use: "init",
Short: "keyauth 服务初始化",
Long: "keyauth 服务初始化",
RunE: func(cmd *cobra.Command, args []string) error {
// 初始化全局变量
if err := loadGlobalConfig(confType); err != nil {
return err
}
return nil
},
}
func init() {
RootCmd.AddCommand(initCmd)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/easy_code/go_demo_keyauth.git
git@gitee.com:easy_code/go_demo_keyauth.git
easy_code
go_demo_keyauth
go_demo_keyauth
33290b63155e

Search