mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
29 lines
334 B
Odin
29 lines
334 B
Odin
package main
|
|
|
|
import "core:fmt"
|
|
|
|
Ctx :: struct {
|
|
title: string,
|
|
using page: Page,
|
|
site: Site,
|
|
}
|
|
|
|
Page :: struct {
|
|
title: string,
|
|
}
|
|
|
|
Site :: struct {
|
|
title: string,
|
|
}
|
|
|
|
main :: proc() {
|
|
site := Ctx {
|
|
site = Site{title = "foo"},
|
|
page = Page{title = "bar"},
|
|
}
|
|
|
|
fmt.printfln("%+v", site)
|
|
fmt.printf("%+v", site)
|
|
}
|
|
|