From ab7c7211759e9b31cb7569c4c0ada99cd4c2ca02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 28 Jun 2022 18:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=91=BD=E4=BB=A4=E8=A1=8C?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- define/flag.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 define/flag.go diff --git a/define/flag.go b/define/flag.go new file mode 100644 index 0000000..b408769 --- /dev/null +++ b/define/flag.go @@ -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"` // 参数描述 +}