| 3 | import "github.com/iwind/TeaGo/maps" |
| 4 | |
| 5 | type OptionsOption struct { |
| 6 | Name string |
| 7 | Code string |
| 8 | Value string // default value |
| 9 | IsRequired bool |
| 10 | Size int |
| 11 | Comment string |
| 12 | RightLabel string |
| 13 | Validate func(value string) (ok bool, message string) |
| 14 | Options []maps.Map |
| 15 | } |
| 16 | |
| 17 | func NewOptionsOption(name string, code string) *OptionsOption { |
| 18 | return &OptionsOption{ |
nothing calls this directly
no outgoing calls
no test coverage detected