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