https://github.com/tkmru/pbas
Config file finder for golang
https://github.com/tkmru/pbas
configuration golang-library
Last synced: 7 months ago
JSON representation
Config file finder for golang
- Host: GitHub
- URL: https://github.com/tkmru/pbas
- Owner: tkmru
- Created: 2017-02-12T13:26:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-13T13:43:15.000Z (over 8 years ago)
- Last Synced: 2025-02-01T16:13:22.120Z (8 months ago)
- Topics: configuration, golang-library
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pbas
Config file finder.## Usage
Get the library via```
$ go get -u github.com/tkmru/pbas
```### Finding Config File
Examples:
```
pbas.SetConfigName("pbas.conf")
pbas.AddConfigPath("/etc/pbas/")
pbas.AddConfigPath("conf/")
configPath := pbas.FindConfigPath()
fmt.Print(configPath)
```## License
MIT LicenseTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) @tkmru