MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / FieldOption

Struct FieldOption

internal/waf/checkpoints/option_field.go:4–15  ·  view source on GitHub ↗

attach option

Source from the content-addressed store, hash-verified

2
3// attach option
4type 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
17func NewFieldOption(name string, code string) *FieldOption {
18 return &FieldOption{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected