摘要:
Gin Gin是Golang的一个后端框架,封装比较优雅,API友好。 go get -u github.com/gin-gonic/gin ###1、hello word package main import ( "github.com/gin-gonic/gin" "net/http" ) f 阅读全文
摘要:
基本的序列化 首先我们来看看Go语言中json.Marshal()(序列化)与json.Unmarshal(反序列化)的基本用法。 package main import ( "encoding/json" "fmt" ) type Person struct{ Name string Age in 阅读全文