func main() {
	x := WindowsAlert{}
	x.ShowMessage("弹窗标题", "你好啊")
	time.Sleep(time.Second * 1)
}

type WindowsAlert struct {
}

func (class *WindowsAlert) IntPtr(n int) uintptr {
	return uintptr(n)
}
func (class *WindowsAlert) StrPtr(s string) uintptr {
	return uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(s)))
}
func (class *WindowsAlert) ShowMessage(title, text string) {

	user32dll, _ := syscall.LoadLibrary("user32.dll")
	user32 := syscall.NewLazyDLL("user32.dll")
	MessageBoxW := user32.NewProc("MessageBoxW")
	MessageBoxW.Call(class.IntPtr(0), class.StrPtr(text), class.StrPtr(title), class.IntPtr(0))
	syscall.FreeLibrary(user32dll)
}