mirror of
https://github.com/spf13/viper
synced 2025-05-07 12:47:18 +00:00
comment
This commit is contained in:
parent
fc23950253
commit
d86cab2376
1 changed files with 3 additions and 1 deletions
4
viper.go
4
viper.go
|
@ -559,7 +559,9 @@ func (v *Viper) ReadInConfig() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReadInRawConfig reads the given raw bytes to load configuration.
|
// ReadInRawConfig reads the given raw bytes to load configuration. It is
|
||||||
|
// necessary to call SetConfigType(), to let viper know how to parse the given
|
||||||
|
// configuration.
|
||||||
func ReadInRawConfig(raw []byte) error { return v.ReadInRawConfig(raw) }
|
func ReadInRawConfig(raw []byte) error { return v.ReadInRawConfig(raw) }
|
||||||
func (v *Viper) ReadInRawConfig(raw []byte) error {
|
func (v *Viper) ReadInRawConfig(raw []byte) error {
|
||||||
v.marshalReader(bytes.NewReader(raw), v.config)
|
v.marshalReader(bytes.NewReader(raw), v.config)
|
||||||
|
|
Loading…
Add table
Reference in a new issue