How would go package the config files for an app? I have created some config files that need to be loaded at runtime, but these files are not included as part of the `go install` command, so when you are executing the app binary, these files are missing.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This depends on what type of application you are writing.
If it is a service on Linux then the configs should go in /etc somewhere and you just leave that up to the users/packagers to do that. As suggested if your app has defaults built in then they should be used if the config dose not exist.
If it is a user land tool that has a config per user then the settings file should be written by the application in the default place for user configuration on the system ie somewhere in %AppData% on windows and $XDG_CONFIG_HOME on linux.
Either way they really should not go in $GOPATH/bin
If you must do this in an automated way then I suggest wrapping the build commands in a Makefile that also installs the other files you need.