yaml

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 9 Imported by: 0

README

go-yac/examples/yaml

This sample show how to compose a configuration provider from YAML files. Since multiple YAML files can be informed, they will be merged, and the last file will have higher precedence from the previous.

Usage

go run main.go -f ${COMMA_DELIMITED_YAML_FILES}

Example

$ go run main.go -f ../../assets/test_data

yac.data:test/samples/assets/config.yml loaded (1/1)
Config [data:test/samples/assets/config.yml]:
	- data.float: 1
	- data.nested.int: 2
	- data.string: string
	- data.nested.float: 2
	- data.int: 1
	- data.bool: true
	- data.stringSlice: [string1 string2]
	- data.nested.stringSlice: [nested.string1 nested.string2]
	- data.nested.string: nested.string
	- data.nested.bool: true

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL