mirror of
https://github.com/adnanh/webhook.git
synced 2025-10-07 15:07:21 +00:00
refactor: add platform
This commit is contained in:
parent
8b887fc35d
commit
2b2997ce49
5 changed files with 17 additions and 14 deletions
|
@ -1,13 +0,0 @@
|
|||
//go:build linux || windows
|
||||
// +build linux windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func dropPrivileges(uid, gid int) error {
|
||||
return errors.New("setuid and setgid not supported on " + runtime.GOOS)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue