Created
May 27, 2019 03:52
-
-
Save Noofbiz/26d4d45e14131e86d81fafaac5a68d4f to your computer and use it in GitHub Desktop.
gleam usage possibilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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