https://github.com/icowan/config
https://github.com/icowan/config
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/icowan/config
- Owner: icowan
- Created: 2020-09-26T11:01:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T07:50:36.000Z (about 2 years ago)
- Last Synced: 2025-01-07T21:51:22.786Z (5 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# config
## install
```bash
$ go get github.com/icowan/config
```## use
```go
cfg, err = config.NewConfig(configPath)
if err != nil {
panic(err)
}cfg.GetString("mysql", "host")
```