本人在日常golang項目開發中,用到了一些第三方開源庫,大多都是優秀的開源項目,源碼值得認真閱讀研究。在此記錄用到的一些庫:
1. 解析配置文件
https://github.com/go-ini/ini,go-ini, go INI文件解析,
https://github.com/spf13/viper golang全能性配置文件解決方案,支持 JSON, TOML, YAML, HCL, and Java properties config files以及etcd等! 贊!
2. 命令行工具
https://github.com/cheggaaa/pb, Terminal progress bar for Go, golang進度條
3. golang web 開發
https://github.com/gorilla, Gorilla web toolkit 一系列web開發套件,最常用的爲http路由模塊mux
4. 存儲相關
https://github.com/minio/minio, Minio (兼容S3 對象存儲)
https://github.com/chrislusf/seaweedfs 基於facebook haystack思想的海量小文件存儲系統
https://github.com/boltdb/bolt 數據庫存儲引擎blotdb
5. protobuf
https://github.com/gogo/protobuf golang官方protobuf增強版
6. K-V Cache
https://github.com/karlseguin/ccache CCache is an LRU Cache, written in Go, focused on supporting high concurrency.