go怎么1个月不写,就不会写了呢
go怎么1个月不写,就不会写了呢。前一段时间系统的学习了golang,现在在写一个小项目,怎么感觉好陌生呢,额。在回去复习一遍吧。坑。在复习一下吧 https://gobyexample-cn.github.io
在次记录:
1)
结构体
type Userm struct {
Name string `json:"name"`
Pwd string `json:"pwd`
}
2)
json解析
u := Userm{}
u.Name = "lc"
resj, _ := json.Marshal(u)
strj := string(resj)
fmt.Println(u, strj)
u2 := Userm{}
json.Unmarshal([]byte(resj), &u2)
fmt.Println(u2)
3)各种链接来一波
Go by Example 中文版
server项目-先启动 | Gin-Vue-Admin
Go语言标准库
Golang中文社区
Go 语言教程 | 菜鸟教程
Gin Web Framework
GORM
4)