INNER CODE UNIT · Go
correctValues
bank-vaults/bank-vaults · cmd/bank-vaults/common.go:67
func correctValues(flags, choices []string) bool {
choicesMap := make(map[string]string)
for _, value := range choices {
choicesMap[value] = ""
}
for _, value := range flags {
if _, exists := choicesMap[value]; !exists {
return false
}
}
return true
}
func kvStoreForConfig(ctx context.Context, cfg *viper.Viper) (kv.Service, error) {
switch mode := cfg.GetString(cfgMode); mode {
case cfgModeValueGoogleCloudKMSGCS:
gcs, err := gcs.New(