```go package main import ( "github.com/go-zero/zero" "github.com/go-zero/zero/mvc" ) // User model type User struct { Name string Age int } // UserController is a controller for user type UserController struct { mvc.Controller } // GetUser is a handler for getting user func (c *UserController) GetUser(name string) (User, error) { // get user from db user := User{ Name: name, Age: 20, } return user, nil } func main() { // create a new zero app app := zero.New() // register user controller app.RegisterController(&UserController{}) // start the server app.Run() } ```