摘要:
main.go package main import ( "github.com/gin-gonic/gin" "net/http" "path" ) func main() { r :=gin.Default() r.LoadHTMLFiles("./upload.html") r.GET("/
阅读全文
posted @ 2021-02-26 00:02
新Sir
阅读(212)
推荐(0)
摘要:
demo project main.go package main import ( "github.com/gin-gonic/gin" "net/http" ) func main() { r := gin.Default() r.LoadHTMLFiles("./login.html","in
阅读全文
posted @ 2021-02-25 14:12
新Sir
阅读(427)
推荐(0)
摘要:
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
阅读(270)
推荐(0)
摘要:
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
阅读(823)
推荐(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
阅读(2095)
推荐(0)
摘要:
我从源码中找了一个例子 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
阅读(739)
推荐(0)
摘要:
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
阅读(4274)
推荐(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
阅读(133)
推荐(0)