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!
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
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