refactor: add platform

This commit is contained in:
soulteary 2023-01-09 23:14:52 +08:00
parent 8b887fc35d
commit 2b2997ce49
No known key found for this signature in database
GPG key ID: 8107DBA6BC84D986
5 changed files with 17 additions and 14 deletions

View file

@ -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)
}