新Sir

导航

 

2021年2月25日

摘要: package main import ( "fmt" "github.com/gin-gonic/gin" "net/http" ) //type User struct { // Name string `json:"name" ` // Age int64 `json:"age"` //} t 阅读全文
posted @ 2021-02-25 14:06 新Sir 阅读(251) 评论(0) 推荐(0) 编辑
 

2021年2月24日

摘要: package main import ( "github.com/gin-gonic/gin" "net/http" ) func main() { r := gin.Default() // 参数是通过get url ? 后面是 query string r.GET("/query", func 阅读全文
posted @ 2021-02-24 14:42 新Sir 阅读(787) 评论(0) 推荐(0) 编辑
 
摘要: package main import ( "github.com/gin-gonic/gin" "net/http" ) type UserInfo struct { Message string Name string Age int } type Student struct { Name s 阅读全文
posted @ 2021-02-24 09:58 新Sir 阅读(2066) 评论(0) 推荐(0) 编辑
 

2020年3月26日

摘要: 我从源码中找了一个例子 BuildUpdate import ( "database/sql" _ "github.com/go-sql-driver/mysql" qb "github.com/didi/gendry/builder" ) #### `BuildUpdate` sign: `Bui 阅读全文
posted @ 2020-03-26 16:26 新Sir 阅读(688) 评论(0) 推荐(0) 编辑
 

2020年3月25日

摘要: package main import ( "fmt" "github.com/mitchellh/mapstructure" ) type User struct { Name string Age int } func MapToStruct() { mapInstance := make(ma 阅读全文
posted @ 2020-03-25 19:11 新Sir 阅读(4197) 评论(0) 推荐(0) 编辑
 
摘要: Git global setup git config --global user.name "xxxxx" git config --global user.email "xxx@xxx.com" Create a new repository git clone https://github.c 阅读全文
posted @ 2020-03-25 11:10 新Sir 阅读(125) 评论(0) 推荐(0) 编辑