MCPcopy Create free account
hub / github.com/cogentcore/core / main

Function main

system/examples/basic/basic.go:15–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func main() {
16 fmt.Println("Hello, world!")
17 opts := &system.NewWindowOptions{
18 Size: image.Pt(1024, 768),
19 StdPixels: true,
20 Title: "System Test Window",
21 }
22 w, err := system.TheApp.NewWindow(opts)
23 if err != nil {
24 panic(err)
25 }
26
27 fmt.Println("got new window", w)
28 system.TheApp.MainLoop()
29}

Callers

nothing calls this directly

Calls 4

PrintlnMethod · 0.80
NewWindowMethod · 0.65
MainLoopMethod · 0.65
PtMethod · 0.45

Tested by

no test coverage detected