它比 golint 更快、更灵活,深受广大 Go 开发者的喜爱 地址:https://github.com/mgechev/revive 10、go-chart:Go 原生图表库。 支持折线图、柱状图、饼图等 package main import ( "os" "github.com/wcharczuk/go-chart/v2" ) func main() { graph os.Create("output.png") defer f.Close() graph.Render(chart.PNG, f) } 地址:https://github.com/wcharczuk/go-chart
在调研图表的方案中,有看到一个 go-chart 的方案。但是这个库看起来可定制性不是很高。