I need to only allow one instance of my Golang executable at a time. I'm not sure how to use a Global Mutex to make sure no other instances are running.
This would be running on a Windows Machine.
I need to only allow one instance of my Golang executable at a time. I'm not sure how to use a Global Mutex to make sure no other instances are running.
This would be running on a Windows Machine.
我一次只需要允许我的Golang可执行文件的一个实例。 我不确定如何使用全局互斥锁来确保没有其他实例在运行。 p>
这将在Windows计算机上运行。 p> div>