mirror of
https://github.com/crazy-max/diun.git
synced 2026-01-04 03:55:00 +01:00
Move syscall to golang.org/x/sys (#525)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
12
pkg/utl/sig.go
Normal file
12
pkg/utl/sig.go
Normal 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
12
pkg/utl/sig_windows.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package utl
|
||||
|
||||
import (
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
const (
|
||||
SIGTERM = windows.SIGTERM
|
||||
)
|
||||
Reference in New Issue
Block a user