12345678910111213141516171819202122232425262728 |
- package example_plugin
- import (
- "github.com/gin-gonic/gin"
- )
- var ExamplePlugin = new(pluginExample)
- type pluginExample struct {
- }
- func (*pluginExample) Register(group *gin.RouterGroup) {
-
-
-
-
- group.GET("hello", func(context *gin.Context) {
- context.JSON(200, "hello world")
- })
- }
- func (*pluginExample) RouterPath() string {
- return "group"
- }
|