-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathmodels.go
More file actions
36 lines (31 loc) · 1.05 KB
/
models.go
File metadata and controls
36 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Package config loads configuration data from an external file.
package config
// YML represents the first level of the YML file.
type YML struct {
Options map[string]interface{} `yaml:"custom"`
Generated Generated `yaml:"generated"`
Matcher Matcher `yaml:"matcher"`
}
// Generated represents generated properties of the YML file.
type Generated struct {
Setup string `yaml:"setup"`
Output string `yaml:"output"`
Template string `yaml:"template"`
}
// Matcher represents matcher properties of the YML file.
type Matcher struct {
Skip bool `yaml:"skip"`
Cast Cast `yaml:"cast"`
}
// Cast represents matcher cast properties of the YML file.
type Cast struct {
Depth int `yaml:"depth"`
Enabled bool `yaml:"enabled"`
Disabled Disabled `yaml:"disabled"`
}
// Disabled represents matcher cast feature flags of the YML file.
type Disabled struct {
AssignObjectInterface bool `yaml:"assignObjectInterface"`
AssertInterfaceObject bool `yaml:"assertInterfaceObject"`
Convert bool `yaml:"convert"`
}