attach option
| 2 | |
| 3 | // attach option |
| 4 | type FieldOption struct { |
| 5 | Name string |
| 6 | Code string |
| 7 | Value string // default value |
| 8 | IsRequired bool |
| 9 | Size int |
| 10 | Comment string |
| 11 | Placeholder string |
| 12 | RightLabel string |
| 13 | MaxLength int |
| 14 | Validate func(value string) (ok bool, message string) |
| 15 | } |
| 16 | |
| 17 | func NewFieldOption(name string, code string) *FieldOption { |
| 18 | return &FieldOption{ |
nothing calls this directly
no outgoing calls
no test coverage detected