10 2020 档案
摘要:import ( "github.com/golang/freetype/truetype""github.com/wcharczuk/go-chart""github.com/wcharczuk/go-chart/drawing" )const imgStrPrefix = "data:image
阅读全文
摘要:const imgStrPrefix = "data:image/png;base64," func imgToStr(imgContent bytes.Buffer) string { return imgStrPrefix + base64.StdEncoding.EncodeToString(
阅读全文
摘要:curl localhost:8888/debug/pprof/heap >heap.base sleep 60s curl localhost:8888/debug/pprof/heap >heap.current go tool pprof -http localhost:8889 -base
阅读全文
摘要:type JsonTime time.Time func (j JsonTime) MarshalJSON() ([]byte, error) { //时间为空默认格式 if time.Time(j).IsZero() { return []byte(`""`), nil } return []by
阅读全文