mirror of
https://github.com/Arvanaghi/CheckPlease
synced 2026-06-08 10:25:16 +00:00
17 lines
251 B
Go
17 lines
251 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
hostname, errorout := os.Hostname()
|
|
if errorout != nil {
|
|
os.Exit(1)
|
|
}
|
|
if strings.Contains(strings.ToLower(hostname), strings.ToLower(os.Args[1])) {
|
|
fmt.Println("Proceed!")
|
|
}
|
|
} |