Back to

package configtest

Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module:


func NewViperFromYamlFile

func NewViperFromYamlFile(t *testing.T, fileName string) *viper.Viper

NewViperFromYamlFile creates a viper instance that reads the given fileName as yaml config and can then be used to unmarshal the file contents to objects. Example usage for testing can be found in configtest_test.go

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier