go-scopes/examples/demo/main.go

18 lines
261 B
Go

package main
import (
"fmt"
"demo/etc"
"git.sr.ht/~cco/go-scopes"
"git.sr.ht/~cco/go-scopes/config"
)
func main() {
cfg := config.Setup(etc.Config())
fmt.Println(cfg.Name())
appCfg := cfg.(*scopes.Cfg)
fmt.Println(appCfg.Home)
scopes.RunApp(cfg)
}