MCPcopy
hub / github.com/spf13/viper / SetConfigType

Method SetConfigType

viper.go:2019–2023  ·  view source on GitHub ↗
(in string)

Source from the content-addressed store, hash-verified

2017func SetConfigType(in string) { v.SetConfigType(in) }
2018
2019func (v *Viper) SetConfigType(in string) {
2020 if in != "" {
2021 v.configType = in
2022 }
2023}
2024
2025// SetConfigPermissions sets the permissions for the config file.
2026func SetConfigPermissions(perm os.FileMode) { v.SetConfigPermissions(perm) }

Callers 15

initConfigsFunction · 0.80
initConfigFunction · 0.80
TestGetConfigFileFunction · 0.80
TestDefaultFunction · 0.80
TestUnmarshalingFunction · 0.80
TestUnmarshalExactFunction · 0.80
TestAliasInConfigFileFunction · 0.80
TestYMLFunction · 0.80
TestJSONFunction · 0.80
TestTOMLFunction · 0.80
TestDotEnvFunction · 0.80
TestRemotePrecedenceFunction · 0.80

Calls

no outgoing calls

Tested by 15

initConfigsFunction · 0.64
initConfigFunction · 0.64
TestGetConfigFileFunction · 0.64
TestDefaultFunction · 0.64
TestUnmarshalingFunction · 0.64
TestUnmarshalExactFunction · 0.64
TestAliasInConfigFileFunction · 0.64
TestYMLFunction · 0.64
TestJSONFunction · 0.64
TestTOMLFunction · 0.64
TestDotEnvFunction · 0.64
TestRemotePrecedenceFunction · 0.64