I want to run a exe
file as a window service.
Is there any golang
open source or any golang
api
to do this?
Thanks!
I want to run a exe
file as a window service.
Is there any golang
open source or any golang
api
to do this?
Thanks!
Read the Documentation Here: https://godoc.org/golang.org/x/sys/windows/svc
import "golang.org/x/sys/windows/svc"
and then use
func Run(name string, handler Handler) error
to start it.
There's a whole lot of other functions that will be useful to you on the page I linked, so you should definitely look at that.