From 09a42e0c344ce4c23918c305f7d27ad44116ba8e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 11 Feb 2014 18:57:03 -0500 Subject: Added the init and testing main functions and started fixing errors. Let's fix the rest and hope it works... --- stdwndclass_windows.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stdwndclass_windows.go') diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go index 730cd51..e3eafa8 100644 --- a/stdwndclass_windows.go +++ b/stdwndclass_windows.go @@ -5,7 +5,6 @@ import ( "fmt" "syscall" "unsafe" - "sync" ) const ( @@ -34,7 +33,7 @@ func stdWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESUL return 0 case _WM_CLOSE: if sysData.closing != nil { - sysData.closing <- struct{} + sysData.closing <- struct{}{} } return 0 default: -- cgit v1.2.3