We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Documentation ommits how to load the yaml/json file into a string,
Here's how I did it:
file, readErr := ioutil.ReadFile("config.yaml") if readErr != nil { fmt.Println("Could not read config.yaml:", readErr) // Maybe exit the program? } yamlConfig := string(file) // parse the file etc
This would be useful to include in the docs. Also putting some of the documentation's example code into the README.md would be great.
The text was updated successfully, but these errors were encountered:
Yep, you right. README.md needed to be improved totally. I'll do it in nearest future. But I don't mind if some good man send me a PR :)
By the way, there are a lot of tips how to use it at godoc.
Sorry, something went wrong.
I will submit a PR if I have the time ;)
I read over the godoc but it doesn't say anything about loading the cfg from a file, the example provided uses a string stored in the go file.
2015-08-13 11:14 GMT+02:00 Oleg Lebedev [email protected]:
Yep, you right. README.md needed to be improved totally. I'll do it in nearest future. But I don't mind if some good man send me a PR :) By the way, there are a lot of tips how to use it at godoc http://godoc.org/github.com/olebedev/config. — Reply to this email directly or view it on GitHub #2 (comment).
By the way, there are a lot of tips how to use it at godoc http://godoc.org/github.com/olebedev/config.
— Reply to this email directly or view it on GitHub #2 (comment).
No branches or pull requests
The Documentation ommits how to load the yaml/json file into a string,
Here's how I did it:
This would be useful to include in the docs. Also putting some of the documentation's example code into the README.md would be great.
The text was updated successfully, but these errors were encountered: