Documentation
¶
Overview ¶
* @Author: GlennLiu <glennliu0607@gmail.com> * @Date: 2025-10-28 13:55:07 * @LastEditors: Glenn 18322653727@163.com * @LastEditTime: 2025-10-28 14:08:08 * @FilePath: \glennctl\api\gogen\gen.go * @Description: * * Copyright (c) 2025 by 天津晟源士兴科技有限公司, All Rights Reserved.
* @Author: GlennLiu <glennliu0607@gmail.com> * @Date: 2025-10-28 13:55:07 * @LastEditors: Glenn 18322653727@163.com * @LastEditTime: 2025-10-28 16:19:09 * @FilePath: \glennctl\api\gogen\genroutes.go * @Description: * * Copyright (c) 2025 by 天津晟源士兴科技有限公司, All Rights Reserved.
Index ¶
- Variables
- func BuildTypes(types []spec.Type) (string, error)
- func Category() string
- func Clean() error
- func DoGenProject(apiFile, dir, style string, withTest bool) error
- func DoGenProjectWithModule(apiFile, dir, moduleName, style string, withTest bool) error
- func GenTemplates() error
- func GoCommand(_ *cobra.Command, _ []string) error
- func RevertTemplate(name string) error
- func Update() error
Constants ¶
This section is empty.
Variables ¶
var ( // VarStringDir describes the directory. VarStringDir string // VarStringAPI describes the API. VarStringAPI string // VarStringHome describes the go home. VarStringHome string // VarStringRemote describes the remote git repository. VarStringRemote string // VarStringBranch describes the branch. VarStringBranch string // VarStringStyle describes the style of output files. VarStringStyle string VarBoolWithTest bool // VarBoolTypeGroup describes whether to group types. VarBoolTypeGroup bool )
Functions ¶
func DoGenProject ¶
DoGenProject gen go project files with api file
func DoGenProjectWithModule ¶
DoGenProjectWithModule gen go project files with api file using custom module name
func RevertTemplate ¶
RevertTemplate reverts the given template file to the default value.
Types ¶
This section is empty.