example

command
v0.0.0-...-54c31f3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

This example program can be used to test the features provided by the github.com/segmentio/conf package.

Passing configuration via the program arguments:

$ go run ./example/main.go -msg 'hello! (from the arguments)'
[main] hello! (from the arguments)

Passing configuration via the environment variables:

$ MAIN_MSG='hello! (from the environment)' go run ./example/main.go
[main] hello! (from the environment)

Passing configuration via a configuration file:

$ go run ./example/main.go -config-file ./example/config.yml
[main] hello ${USER}! (from the config file)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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