//go:build !windows package selfupdate import ( "os" "syscall" ) // restart replaces this process with the new binary, with the same arguments and environment. func restart(exe string) error { return syscall.Exec(exe, os.Args, os.Environ()) }