MCPcopy Create free account
hub / github.com/encodeous/nylon / warning

Function warning

polyamide/main.go:39–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func warning() {
40 switch runtime.GOOS {
41 case "linux", "freebsd", "openbsd":
42 if os.Getenv(ENV_WG_PROCESS_FOREGROUND) == "1" {
43 return
44 }
45 default:
46 return
47 }
48
49 fmt.Fprintln(os.Stderr, "┌──────────────────────────────────────────────────────┐")
50 fmt.Fprintln(os.Stderr, "│ │")
51 fmt.Fprintln(os.Stderr, "│ Running wireguard-go is not required because this │")
52 fmt.Fprintln(os.Stderr, "│ kernel has first class support for WireGuard. For │")
53 fmt.Fprintln(os.Stderr, "│ information on installing the kernel module, │")
54 fmt.Fprintln(os.Stderr, "│ please visit: │")
55 fmt.Fprintln(os.Stderr, "│ https://www.wireguard.com/install/ │")
56 fmt.Fprintln(os.Stderr, "│ │")
57 fmt.Fprintln(os.Stderr, "└──────────────────────────────────────────────────────┘")
58}
59
60func main() {
61 if len(os.Args) == 2 && os.Args[1] == "--version" {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected