feat add tag switch to disable form array of split comma format (#4633)

Co-authored-by: wuhongyu <readboy@DESKTOP-T8INU17>
This commit is contained in:
xuerbujia
2025-02-09 00:34:41 +08:00
committed by GitHub
parent 651eabb4c6
commit 507ff96546
4 changed files with 110 additions and 25 deletions

View File

@@ -8,13 +8,14 @@ type (
// use context and OptionalDep option to determine the value of Optional
// nothing to do with context.Context
fieldOptionsWithContext struct {
Inherit bool
FromString bool
Optional bool
Options []string
Default string
EnvVar string
Range *numberRange
Inherit bool
FromString bool
Optional bool
Options []string
Default string
EnvVar string
Range *numberRange
FormArrayComma bool
}
fieldOptions struct {