Created
July 23, 2019 06:44
-
-
Save kasvith/213daa60fa07bdef64703e3779591c61 to your computer and use it in GitHub Desktop.
Old way
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// define default values, other resources in default package | |
package defaults | |
var ConfigTemplate = []byte(` | |
// content goes here | |
`) | |
// In some another package | |
func somefunc(){ | |
ioutil.WriteFile("/path/to/dest", defaults.ConfigTemplate, os.ModePerm) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment