commit | 7844c3c200c348863f4ff2a6efe6c016b5ba8b57 | [log] [tgz] |
---|---|---|
author | Jason A. Donenfeld <Jason@zx2c4.com> | Thu Mar 04 12:28:19 2021 -0700 |
committer | Jason A. Donenfeld <Jason@zx2c4.com> | Fri Mar 05 03:40:16 2021 +0000 |
tree | c349731ee65a1df1f4d2104b5895dd9aa296f30c | |
parent | 61f932b4c61630a83503678186c69c572c085324 [diff] |
windows/svc: rewrite IsWindowsService Alex copied this from a temporary thing I had written for the runtime package. In runtime, you can't really access other packages like syscall, so everything has to be very manual. But in x/sys, we can do things properly. So this reimplements the function in a more straight forward way. Change-Id: I1634904bb1e10f33252954ce02d4b17ae56592e5 Reviewed-on: https://go-review.googlesource.com/c/sys/+/298830 Trust: Jason A. Donenfeld <Jason@zx2c4.com> Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run go get -u golang.org/x/sys
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.