Skip to content

Instantly share code, notes, and snippets.

@Noofbiz
Created May 27, 2019 03:52
Show Gist options
  • Save Noofbiz/26d4d45e14131e86d81fafaac5a68d4f to your computer and use it in GitHub Desktop.
Save Noofbiz/26d4d45e14131e86d81fafaac5a68d4f to your computer and use it in GitHub Desktop.
gleam usage possibilities
package main
import (
"bufio"
"fmt"
"os"
"github.com/Noofbiz/gleam"
"github.com/davecgh/go-spew/spew"
)
func main() {
gleam.Main(func(a *gleam.App) {
w, _ := a.NewWindow(gleam.WindowOptions{
Height: 600,
Width: 800,
Title: "test",
})
fmt.Print("Press 'Enter' to continue...")
bufio.NewReader(os.Stdin).ReadBytes('\n')
spew.Dump(w)
})
// gleam.Init()
// w, _ := a.NewWindow(gleam.WindowOptions{
// Height: 600,
// Width: 800,
// Title: "test",
// })
// fmt.Print("Press 'Enter' to continue...")
// bufio.NewReader(os.Stdin).ReadBytes('\n')
// spew.Dump(w)
// gleam.Close()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment