AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
~~~ package main import "github.com/kataras/iris" func main() { app := iris.New() // 分组 userRouter := app.Party("/user") // route: /user/{name}/home 例如:/user/dollarKiller/home userRouter.Get("/{name:string}/home", func(ctx iris.Context) { name := ctx.Params().Get("name") ctx.Writef("you name: %s",name) }) // route: /user/post userRouter.Post("/post", func(ctx iris.Context) { ctx.Writef("method:%s,path;%s",ctx.Method(),ctx.Path()) }) app.Run(iris.Addr(":8085"),iris.WithCharset("UTF-8")) } ~~~