I'm currently working on a server side app written in Golang. I want to package the app in a snap package.
Where can I store a global configuration file for the app that retains itself even after an upgrade?
Some sample code would be nice, thanks!
All info you need regarding where snap can read/write files can be found in this post: Where can Ubuntu snaps write data?
From your question it seems you will be most interested in SNAP_COMMON
folder.