定义命令行参数结构

This commit is contained in:
zhangdeman committed 2022-06-28 18:46:42 +08:00
1 parent df50a1e1b7
commit ab7c721175
1 file changed
+20
+20
View File
@@ -0,0 +1,20 @@
// Package define ...
//
// Description : define ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2022-06-28 18:43
package define
// CliParam 命令行参数定义
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 18:44 2022/6/28
type CliParam struct {
Name string `json:"name"` // 参数名称
Receiver interface{} `json:"-"` // 数据接收指针
DefaultValue string `json:"default_value"` // 默认值
Description string `json:"description"` // 参数描述
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.