Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/b0ch3nski/go-envconfig-extra
Extra tools extending usage of go-envconfig library.
https://github.com/b0ch3nski/go-envconfig-extra
configuration configuration-management envconfig envs golang
Last synced: about 1 month ago
JSON representation
Extra tools extending usage of go-envconfig library.
- Host: GitHub
- URL: https://github.com/b0ch3nski/go-envconfig-extra
- Owner: b0ch3nski
- License: apache-2.0
- Created: 2024-05-29T13:50:14.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-06-24T15:46:12.000Z (8 months ago)
- Last Synced: 2024-11-05T21:04:43.383Z (3 months ago)
- Topics: configuration, configuration-management, envconfig, envs, golang
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-envconfig-extra
[![license](https://img.shields.io/github/license/b0ch3nski/go-envconfig-extra)](LICENSE)
[![release](https://img.shields.io/github/v/release/b0ch3nski/go-envconfig-extra)](https://github.com/b0ch3nski/go-envconfig-extra/releases)
[![go.dev](https://pkg.go.dev/badge/github.com/b0ch3nski/go-envconfig-extra)](https://pkg.go.dev/github.com/b0ch3nski/go-envconfig-extra)
[![goreportcard](https://goreportcard.com/badge/github.com/b0ch3nski/go-envconfig-extra)](https://goreportcard.com/report/github.com/b0ch3nski/go-envconfig-extra)
[![issues](https://img.shields.io/github/issues/b0ch3nski/go-envconfig-extra)](https://github.com/b0ch3nski/go-envconfig-extra/issues)
[![sourcegraph](https://sourcegraph.com/github.com/b0ch3nski/go-envconfig-extra/-/badge.svg)](https://sourcegraph.com/github.com/b0ch3nski/go-envconfig-extra)Extra tools extending usage of [go-envconfig](https://github.com/sethvargo/go-envconfig) library.
## install
```
go get github.com/b0ch3nski/go-envconfig-extra
```## example
```go
import "github.com/b0ch3nski/go-envconfig-extra/envconfigext"type Config struct {
Password1 string `env:"PASS1,required" secret:"redact"`
Password2 string `env:"PASS2,required" secret:"mask=4"`ArbitraryFile envconfigext.FileContent `env:"FILE"`
Certificate envconfigext.X509Cert `env:"CERT"`
}func (c Config) String() string {
return envconfigext.StructFieldScan(c)
}
```