10 Star 39 Fork 9

Gitee 极速下载 / Crocodile

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/labulaka521/crocodile
克隆/下载
main.go 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
国梦数据库 提交于 2020-04-06 15:47 . add: form validation
package main
import (
"fmt"
"github.com/labulaka521/crocodile/core/cmd"
"github.com/labulaka521/crocodile/core/version"
"github.com/spf13/cobra"
)
var (
v string
c string
d string
)
// @title Crocidle API
// @version 1.0
// @description Crocodile Swaager JSON API
// @termsOfService https://github.com/labulaka521/crocodile
// @contact.name labulaka521
// @contact.url http://www.swagger.io/support
// @contact.email labulakalia@gmail.com
// @license.name MIT 2.0
// @license.url https://github.com/labulaka521/crocodile/blob/master/LICENSE
// @securityDefinitions.basic BasicAuth
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
func main() {
version.Commit = c
version.Version = v
version.BuildDate = d
rootCmd := &cobra.Command{Use: "crocodile"}
rootCmd.AddCommand(cmd.Client())
rootCmd.AddCommand(cmd.Server())
rootCmd.AddCommand(cmd.Version())
rootCmd.AddCommand(cmd.GeneratePemKey())
if err := rootCmd.Execute(); err != nil {
fmt.Println("rootCmd.Execute failed", err.Error())
}
}
1
https://gitee.com/mirrors/Crocodile.git
git@gitee.com:mirrors/Crocodile.git
mirrors
Crocodile
Crocodile
master

搜索帮助