env

command
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

env has higher precedence than file config and you can use under core to replace dot in env to replace file config

for example, to change config user

cred:
  db:
    user: admin
    pwd:

you only need to set env "cred_db_user" or "cred.db.user"

then you can use archaius to get it, file config will be overwrite by env

archaius.Get("cred.db.user")
go build main.go
./main

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