I'm afraid, there isn't such a name.
On Windows, a program's config file is typically located along with the
program's binary itself, in a folder named like
"%ProgramFiles%\{Vendor}\{Program}"
On a typical Linux-based system a program's config file is expected to
be located under /etc, and have a meaningful name, like
"/etc/{progname}.conf".
*But* bevare that this Unix-y concept of having the program's files
*spread* across the system relies heavily on the concept of packages:
that is, every program gets installed into the system from a package,
and through this, the system's package manager knows how to delete all
that files when you request the package removal. So if you do package
your program, all is well, but if you employ frequent/rapid
"bare" deployments, consider breaking these LFS rules and place all
your program's static (i.e. changed by hand only) files under
"/opt/{progname}" and have it place the stuff it changes itself under
"/srv/{progname}".
I can't say anything about OS X.
Since now you have to deal with different locations on different
platforms, consider using platform_specific files, like:
conf_linux.go:
func GetConfigPath() {
return "/etc/foo.conf"
}
conf_windows.go:
func GetConfigPath() {
// 1) Figure out the name of the executable;
// 2) Get its directory name (use path.filepath);
// 3) Append "foo.conf" to it (use path.filepath);
return theResult;
}
...