Get returns the IWindow singleton.
()
| 22 | |
| 23 | // Get returns the IWindow singleton. |
| 24 | func Get() IWindow { |
| 25 | // Return singleton if already created |
| 26 | if win != nil { |
| 27 | return win |
| 28 | } |
| 29 | panic(fmt.Errorf("need to call window.Init() first")) |
| 30 | } |
| 31 | |
| 32 | // IWindow is the interface for all windows |
| 33 | type IWindow interface { |
no outgoing calls
no test coverage detected