Search code examples
gomessagebox

How to alert() in Go to show messagebox


In javascript, if we want to show pop up messagebox with custom message in browser, we can use alert("message") function.

How to do it in Go?


Solution

  • Log in go with the log package or the fmt package, using log.Printf or log.Println for example.