Skip to content

ChromeTemp/Popup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Popup

Create Windows Popup simple UI in Go

Installation

go get github.com/ChromeTemp/Popup

Usage

package main

import (
    "github.com/ChromeTemp/Popup"
    "fmt"
)

main() {
    // shows a native Windows alert
    Popup.Alert("Example Title", "Example Content")
    // shows a native Windows dialog (and handle user action)
    res := Popup.Dialog("Dialog", "Want to continue?")
    // Example: user will press Ok
    fmt.Println("Pressed Ok? "+res)
    // logs: Pressed Ok? true
}

About

Create Windows Popup simple UI in Go

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages