Answer the question
In order to leave comments, you need to log in
Where to put configs in Golang?
I am writing an application that uses the json config.
There are many folders (modules) in the application. Each module must name access to this config file.
As I understand it, after compilation, all paths will break if you work, for example, through _, filename, _, _ := runtime.Caller(1)
How to be, where are the configs put in general, so that it would be good to test and run without problems?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question