package main import ( user "git.echinacities.com/mogfee/protoc-gen-kit/proto/v1" "git.echinacities.com/mogfee/protoc-gen-kit/service" "github.com/gin-gonic/gin" ) func main() { app := gin.Default() srv := service.UserService{} app.Use(func(c *gin.Context) { c.Set("userId", 11) }) user.RegisterUserHandler(app, &srv) app.Run("localhost:8888") }