simple

command
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 1 Imported by: 0

README

Simple to use

This example shows the simplest way to use goconfig.

Try the following commands:

  • See the help using the -h parameter
go run main.go -h
  • Change parameters via command line
go run main.go -db=true -mongodb_port=9090
  • Try to create an environment variable MONGODB_HOST and see how the content of the struct changes
export MONGODB_HOST="myhost.com"
go run main.go

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