//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()) }