mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 00:43:20 +01:00
14 lines
387 B
Go
14 lines
387 B
Go
package config
|
|
|
|
import "github.com/spf13/viper"
|
|
|
|
type development struct {
|
|
ProfileCPU bool `yaml:"profile-cpu" json:"profile-cpu" mapstructure:"profile-cpu"`
|
|
ProfileMem bool `yaml:"profile-mem" json:"profile-mem" mapstructure:"profile-mem"`
|
|
}
|
|
|
|
func (cfg development) loadDefaultValues(v *viper.Viper) {
|
|
v.SetDefault("dev.profile-cpu", false)
|
|
v.SetDefault("dev.profile-mem", false)
|
|
}
|