Moved to a proper package; main() is now a test and go test -c is used to build. Once I iron out a bug with Windows event handling, I'll add a README.

This commit is contained in:
Pietro Gagliardi 2014-02-19 11:41:10 -05:00
parent c02948847e
commit fb82e651a4
34 changed files with 37 additions and 35 deletions

View File

@ -1,5 +1,5 @@
// 12 february 2014 // 12 february 2014
package main package ui
import ( import (
"sync" "sync"

View File

@ -1,7 +1,7 @@
// +build !windows,!darwin,!plan9 // +build !windows,!darwin,!plan9
// 16 february 2014 // 16 february 2014
package main package ui
import ( import (
"unsafe" "unsafe"

View File

@ -1,5 +1,5 @@
// 13 february 2014 // 13 february 2014
package main package ui
import ( import (
"sync" "sync"

View File

@ -1,5 +1,5 @@
// 14 february 2014 // 14 february 2014
package main package ui
import ( import (
"sync" "sync"

View File

@ -1,5 +1,5 @@
// 7 february 2014 // 7 february 2014
package main package ui
import ( import (
"syscall" "syscall"

View File

@ -1,5 +1,5 @@
// 11 february 2014 // 11 february 2014
package main package ui
import ( import (
// ... // ...

View File

@ -1,5 +1,5 @@
// 9 february 2014 // 9 february 2014
package main package ui
import ( import (
// "syscall" // "syscall"

View File

@ -1,5 +1,5 @@
// 7 february 2014 // 7 february 2014
package main package ui
import ( import (
"fmt" "fmt"

View File

@ -1,7 +1,7 @@
// +build !windows,!darwin,!plan9 // +build !windows,!darwin,!plan9
// 7 february 2014 // 7 february 2014
package main package ui
import ( import (
"unsafe" "unsafe"

View File

@ -1,5 +1,5 @@
// 7 february 2014 // 7 february 2014
package main package ui
import ( import (
"fmt" "fmt"

View File

@ -2,7 +2,7 @@
// TODO is there a way to simplify the above? :/ // TODO is there a way to simplify the above? :/
// 16 february 2014 // 16 february 2014
package main package ui
import ( import (
"unsafe" "unsafe"

View File

@ -1,7 +1,7 @@
// +build !windows,!darwin,!plan9 // +build !windows,!darwin,!plan9
// 17 february 2014 // 17 february 2014
package main package ui
import ( import (
"unsafe" "unsafe"

View File

@ -1,5 +1,5 @@
// 11 february 2014 // 11 february 2014
package main package ui
import ( import (
"os" "os"

View File

@ -1,5 +1,5 @@
// 8 february 2014 // 8 february 2014
package main package ui
import ( import (
"fmt" "fmt"

View File

@ -1,5 +1,5 @@
// 14 february 2014 // 14 february 2014
package main package ui
import ( import (
"sync" "sync"

View File

@ -1,5 +1,5 @@
// 14 february 2014 // 14 february 2014
package main package ui
import ( import (
"sync" "sync"

View File

@ -1,5 +1,5 @@
// 14 february 2014 // 14 february 2014
package main package ui
import ( import (
"sync" "sync"

View File

@ -1,7 +1,7 @@
// +build !windows,!darwin,!plan9 // +build !windows,!darwin,!plan9
// 17 february 2014 // 17 february 2014
package main package ui
import ( import (
"unsafe" "unsafe"

View File

@ -1,11 +1,12 @@
// 11 february 2014 // 11 february 2014
package main package ui
import ( import (
"fmt" "fmt"
"testing"
) )
func main() { func TestMain(t *testing.T) {
w := NewWindow("Main Window", 320, 240) w := NewWindow("Main Window", 320, 240)
w.Closing = Event() w.Closing = Event()
b := NewButton("Click Me") b := NewButton("Click Me")
@ -67,5 +68,6 @@ mainloop:
} }
} }
w.Hide() w.Hide()
println("exited loop")
} }

View File

@ -1,5 +1,5 @@
// 10 february 2014 // 10 february 2014
package main package ui
import ( import (
// "syscall" // "syscall"

View File

@ -1,5 +1,5 @@
// 13 february 2014 // 13 february 2014
package main package ui
import ( import (
"fmt" "fmt"

View File

@ -1,5 +1,5 @@
// 8 february 2014 // 8 february 2014
package main package ui
import ( import (
"fmt" "fmt"

View File

@ -1,5 +1,5 @@
// 11 february 2014 // 11 february 2014
package main package ui
import ( import (
"runtime" "runtime"

View File

@ -1,7 +1,7 @@
// +build !windows,!darwin,!plan9 // +build !windows,!darwin,!plan9
// 16 february 2014 // 16 february 2014
package main package ui
import ( import (
"fmt" "fmt"

View File

@ -1,5 +1,5 @@
// 11 february 2014 // 11 february 2014
package main package ui
import ( import (
"fmt" "fmt"

View File

@ -1,7 +1,7 @@
// +build !windows,!darwin,!plan9 // +build !windows,!darwin,!plan9
// 16 february 2014 // 16 february 2014
package main package ui
import ( import (
"fmt" "fmt"

View File

@ -1,5 +1,5 @@
// 11 february 2014 // 11 february 2014
package main package ui
import ( import (
"syscall" "syscall"

View File

@ -1,5 +1,5 @@
// 8 february 2014 // 8 february 2014
package main package ui
import ( import (
// "syscall" // "syscall"

View File

@ -1,5 +1,5 @@
// 8 february 2014 // 8 february 2014
package main package ui
import ( import (
// "syscall" // "syscall"

View File

@ -1,7 +1,7 @@
// +build ignore // +build ignore
// 7 february 2014 // 7 february 2014
package main package ui
import ( import (
"fmt" "fmt"

View File

@ -1,5 +1,5 @@
// 9 february 2014 // 9 february 2014
package main package ui
import ( import (
// "syscall" // "syscall"

View File

@ -1,5 +1,5 @@
// 10 february 2014 // 10 february 2014
package main package ui
import ( import (
// "syscall" // "syscall"

View File

@ -1,5 +1,5 @@
// 11 february 2014 // 11 february 2014
package main package ui
import ( import (
"fmt" "fmt"

View File

@ -1,5 +1,5 @@
// 8 february 2014 // 8 february 2014
package main package ui
import ( import (
// "syscall" // "syscall"