...
Tawesoft Logo

Source file src/tawesoft.co.uk/go/dialog/dialog-common.go

Documentation: src/tawesoft.co.uk/go/dialog/dialog-common.go

     1  package dialog
     2  
     3  // Alert displays a modal message box with message. The message string can
     4  // be a printf-style format string for an optional sequence of additional
     5  // arguments of any type.
     6  func Alert(message string, args...interface{}) {
     7      if len(args) == 0 {
     8          platformAlert("Alert", "%s", message)
     9      } else {
    10          platformAlert("Alert", message, args...)
    11      }
    12  }
    13  

View as plain text