How to convert go exe file as a service

I wanna convert Go .exe file as a service, Would you pls help me out on how to achieve this?

Does this help?

Service to me is both an independent server not communicating with other services (example a cron service) or a service that is built to communicate (REST API etc). All my services are “normal” Go executables (no conversion) using different ports and started separately on the server.

Hi, Charles,
Check out the x/sys/windows/svc package and its example code: example command - - Go Packages.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.