modweb/examples/test/main.go
2020-11-11 23:48:11 +01:00

20 lines
296 B
Go

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)
}
}