better build

This commit is contained in:
Mikaël Cluseau
2023-11-27 14:40:15 +01:00
parent 86d85f014c
commit 3f2cd997a0
5 changed files with 32 additions and 12 deletions

View File

@ -50,6 +50,11 @@ func main() {
}
func runInit() {
if len(os.Args) > 1 && os.Args[1] == "hello" {
fmt.Println("hello world!")
os.Exit(0)
}
runtime.LockOSThread()
if pid := os.Getpid(); pid != 1 {