Move syscall to golang.org/x/sys (#525)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-12-26 03:59:19 +01:00
committed by GitHub
parent 82d056d3ab
commit 848a9a08ac
7 changed files with 36 additions and 6 deletions

12
pkg/utl/sig.go Normal file
View File

@@ -0,0 +1,12 @@
//go:build !windows
// +build !windows
package utl
import (
"golang.org/x/sys/unix"
)
const (
SIGTERM = unix.SIGTERM
)

12
pkg/utl/sig_windows.go Normal file
View File

@@ -0,0 +1,12 @@
//go:build windows
// +build windows
package utl
import (
"golang.org/x/sys/windows"
)
const (
SIGTERM = windows.SIGTERM
)