Advertisement
Snuggledash

hello win32

Feb 6th, 2021
1,629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.22 KB | None | 0 0
  1. package main
  2.  
  3. import "golang.org/x/sys/windows"
  4.  
  5. func main() {
  6.     var bytesWritten uint32
  7.     msg := []byte("Hallo, Welt!\r\n")
  8.     stdout, _ := windows.GetStdHandle(-11)
  9.     windows.WriteFile(stdout, msg, &bytesWritten, nil)
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement