github.com/nextlinux/gosbom@v0.81.1-0.20230627115839-1ff50c281391/internal/config/linux_kernel.go (about) 1 package config 2 3 import "github.com/spf13/viper" 4 5 type linuxKernel struct { 6 CatalogModules bool `json:"catalog-modules" yaml:"catalog-modules" mapstructure:"catalog-modules"` 7 } 8 9 func (cfg linuxKernel) loadDefaultValues(v *viper.Viper) { 10 v.SetDefault("linux-kernel.catalog-modules", true) 11 }