Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cogentcore/core
/ main
Function
main
pages/examples/basic/basic.go:17–22 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
15
var
content embed.FS
16
17
func
main() {
18
b := core.NewBody(
"Pages Example"
)
19
pg := pages.NewPage(b).SetContent(content)
20
b.AddAppBar(pg.MakeToolbar)
21
b.RunMainWindow()
22
}
Callers
nothing calls this directly
Calls
5
AddAppBar
Method · 0.95
RunMainWindow
Method · 0.95
NewBody
Function · 0.92
NewPage
Function · 0.92
SetContent
Method · 0.80
Tested by
no test coverage detected