文章分类 -  Golang

摘要:Multipart/Urlencoded Form Multipart/Urlencoded 表单 func main() { app := iris.Default() app.Post("/form_post", func(ctx iris.Context) { message := ctx.P 阅读全文
posted @ 2021-12-13 16:18 菜鸟吊思 阅读(43) 评论(0) 推荐(0)
摘要:Querystring parameters 查询字符串参数 func main() { app := iris.Default() // Query string parameters are parsed using the existing underlying request object. 阅读全文
posted @ 2021-12-13 16:15 菜鸟吊思 阅读(83) 评论(0) 推荐(0)
摘要:Parameters in path 路径参数 func main() { app := iris.Default() // This handler will match /user/john but will not match /user/ or /user app.Get("/user/{n 阅读全文
posted @ 2021-12-13 16:13 菜鸟吊思 阅读(113) 评论(0) 推荐(0)
摘要:Using GET, POST, PUT, PATCH, DELETE and OPTIONS 使用 GET, POST, PUT, PATCH, DELETE and OPTIONS func main() { // Creates an iris application with default 阅读全文
posted @ 2021-12-13 16:05 菜鸟吊思 阅读(93) 评论(0) 推荐(0)
摘要:API Examples API示例 You can find a number of ready-to-run examples at Iris examples repository. 你可以在Iris示例仓库中找到许多准备就绪的示例。 使用 GET, POST, PUT, PATCH, DEL 阅读全文
posted @ 2021-12-13 11:23 菜鸟吊思 阅读(68) 评论(0) 推荐(0)
摘要:Benchmarks 基准测试 Iris uses a custom version of muxie. Iris使用muxie的自定义版本。 See all benchmarks 查看所有基准测试 📖 Fires 200000 requests with a dynamic parameter 阅读全文
posted @ 2021-12-13 10:44 菜鸟吊思 阅读(51) 评论(0) 推荐(0)
摘要:Quick start 快速开始 Create an empty file, let's assume its name is example.go, then open it and copy-paste the below code. 创建一个空文件,假设它的名字为example.go,然后打开 阅读全文
posted @ 2021-12-13 10:10 菜鸟吊思 阅读(302) 评论(0) 推荐(0)
摘要:Installation 安装 Iris is a cross-platform software. Iris是一个跨平台软件。 The only requirement is the Go Programming Language, version 1.15 and above. 唯一的要求是Go 阅读全文
posted @ 2021-12-13 10:04 菜鸟吊思 阅读(338) 评论(0) 推荐(0)