mirror of
https://github.com/konyshe/GoodLink.git
synced 2026-08-30 17:06:44 +08:00
12 lines
234 B
Go
12 lines
234 B
Go
//go:build windows
|
|
|
|
package main
|
|
|
|
import "golang.org/x/sys/windows"
|
|
|
|
func hideUIConsole() {
|
|
kernel32 := windows.NewLazySystemDLL("kernel32.dll")
|
|
procFreeConsole := kernel32.NewProc("FreeConsole")
|
|
_, _, _ = procFreeConsole.Call()
|
|
}
|