My golang web application is running but i need rune the some task by using command line with flag then shutdow that related task without disturb main application, please tell me,
ex: ./binaryName --version like that i will try to rune ./binaryName --someflag for running some task
I do assume, that your running server and whatever you call with command line switches are separate processes from your operating systems point of view?
If so, I do not understand how you think they could affect each other without using some form of IPC explicitly.