modweb/examples/test/hello-world/main.go

20 lines
329 B
Go
Raw Normal View History

2020-11-11 22:48:11 +00:00
package hello_world
import "git.ddd.rip/ptrcnull/modweb"
type HelloWorldModule struct {}
func (m *HelloWorldModule) Init(app *modweb.App) {
//app
}
func (m *HelloWorldModule) Name() string {
return "hello-world"
}
func (m *HelloWorldModule) FriendlyName() string {
return "Hello World"
}
var Module = HelloWorldModule{}