I’m working on a project in Golang and I need to determine whether a process is running as a Windows service or not. Is there a way to achieve this programmatically in Golang? If so, could someone provide some guidance or code snippets on how to accomplish this task?
Thank you!