modweb/examples/test/main.go

20 lines
296 B
Go
Raw Normal View History

2020-11-11 22:48:11 +00:00
package main
import (
"git.ddd.rip/ptrcnull/modweb"
helloworld "git.ddd.rip/ptrcnull/modweb/examples/test/hello-world"
)
func main() {
app := modweb.New(modweb.Config{
AppName: "Test App",
})
app.Register(&helloworld.Module)
err := app.Run(":8011")
if err != nil {
panic(err)
}
}