Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kayac/go-config

Configuration file loader for Go
https://github.com/kayac/go-config

configuration go json toml yaml

Last synced: 3 months ago
JSON representation

Configuration file loader for Go

Awesome Lists containing this project

README

        

# go-config

go-config is a configuration loader package.

See [godoc.org/github.com/kayac/go-config](https://godoc.org/github.com/kayac/go-config).

## merge-env-config

merge-env-config is the cli tool to deal with template files.

for example:
```
{
"name": "some function name",
"description": "some description",
"environment": {
"account_id": "{{ must_env `SOME_MUST_ACCOUNT_ID` }}",
"secret_key": "{{ env `SOME_SECRET_KEY` }}"
}
}
```

```
$ SOME_MUST_ACCOUNT_ID=must_account_id SOME_SECRET_KEY=some_secret_key merge-env-config -json function.prod.json.tmpl
{
"name": "some function name",
"description": "some description",
"environment": {
"account_id": "must_account_id",
"secret_key": "some_secret_key"
}
}
```

## Author

Copyright (c) 2017 KAYAC Inc.

## LICENSE

MIT