20 lines
329 B
Go
20 lines
329 B
Go
|
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{}
|