摘要:
package main import ( "fmt" "net/http" "time" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() r.GET("/", func(c *gin.Context) { w := c.W 阅读全文
posted @ 2024-08-26 17:36
朝阳1
阅读(22)
评论(0)
推荐(0)
摘要:
新建cargo项目 cargo new rust-web 编辑Cargo.toml [dependencies] actix-web = "4" 编写main.rs use actix_web::{get,web, App, HttpServer, Responder,HttpResponse}; 阅读全文
posted @ 2024-08-26 16:41
朝阳1
阅读(68)
评论(0)
推荐(0)