1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
//go:build windows // +build windows package main import ( "errors" ) func setUID(uid uint16) error { if uid != 0 { return errors.New("unable to setuid on Windows") } return nil } func setGID(uid uint16) error { if uid != 0 { return errors.New("unable to setgid on Windows") } return nil }