File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ import (
10
10
11
11
// Engine — data model to process settings.
12
12
type Engine struct {
13
- Value reflect.Value
14
13
Type reflect.Type
15
- NumberOfFields int
16
14
Validate * validator.Validate
15
+ Value reflect.Value
17
16
Field Loop
17
+ NumberOfFields int
18
18
}
19
19
20
20
// newEngine creates new model to process settings.
21
- func newEngine (settings interface {} ) * Engine {
21
+ func newEngine (settings any ) * Engine {
22
22
return & Engine {
23
23
Value : reflect .ValueOf (settings ),
24
24
Type : reflect .TypeOf (settings ),
@@ -28,22 +28,22 @@ func newEngine(settings interface{}) *Engine {
28
28
29
29
// Loop — variables that used during field processing.
30
30
type Loop struct {
31
+ value reflect.Value
31
32
envTag string
32
33
envValue string
33
34
validationRule string
35
+ defaultSetting string
36
+ field reflect.StructField
34
37
durationValue time.Duration
35
38
int64Value int64
36
39
uint64Value uint64
37
- field reflect.StructField
38
- value reflect.Value
40
+ float64Value float64
39
41
hasEnvTag bool
40
42
mustBeOmitted bool
41
43
hasEnvValue bool
42
44
mustBeValidated bool
43
45
required bool
44
- defaultSetting string
45
46
hasDefaultSetting bool
46
- float64Value float64
47
47
}
48
48
49
49
// exceedsMaximumUint returns true if the value exceeds the maximum uint value.
You can’t perform that action at this time.
0 commit comments