20 lines
296 B
Go
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)
|
||
|
}
|
||
|
}
|