====== GO言語 ライブラリ ====== ===== Web アプリケーションフレームワーク(WAF) ===== ==== 軽量WAF ==== * [[https://echo.labstack.com/|Echo]] * Echoは2015年に登場 * RESTful APIを作ることに向く * [[https://github.com/gin-gonic/gin|Gin]] * 高速さが売り * 対Martini比で40倍以上の速度 * [[https://github.com/zenazn/goji|Goji]] * Net/httpとの互換性があり、カスタムパターンを定義している ==== フルスタックWAF ==== * [[https://revel.github.io/|Revel]] * RailsやPlay Frameworkから影響を受けて作られた * [[https://beego.me/|Beego]] * ORマッパーまでサポート * RubyのSinatraを元に設計 ===== パッケージ管理ツール ===== * [[https://github.com/golang/dep|dep]] * requires Go 1.8 or newer * [[https://github.com/Masterminds/glide|glide]] * //Glide is used by a great number of projects and will continue to get support for some time. But, the near future is likely in dep.// ===== その他 ===== * [[https://github.com/mholt/binding|binding]]: バリデーションライブラリ * [[https://github.com/olivere/elastic|elastic]]: Elasticsearch クライアント * [[https://github.com/go-sql-driver/mysql|go-mysql-driver]]: mysql ドライバー * [[https://github.com/fukata/golang-stats-api-handler|golang-stats-api-handler]]: サーバーのシステム情報を取得するライブラリ * [[https://github.com/go-gorp/gorp|gorp]]: OR マッパー的なライブラリ * [[http://gopkg.in/ini.v1|ini]]: ini ファイルの読み書きライブラリ * [[https://github.com/Sirupsen/logrus|logrus]]: ロギングライブラリ * [[https://github.com/garyburd/redigo|redigo]]: Redis クライアント * [[https://gopkg.in/Masterminds/squirrel.v1|squirrel]]: SQL ジェネレーター * [[https://github.com/dgrijalva/jwt-go|jwt-go]]: JSON Web Token * [[https://github.com/uber-go/zap|zap]]: 構造化メッセージが構築できる高速なロギングライブラリ ===== 参考 ===== [[http://namihira.hatenablog.com/entry/20170409/1491710093|golang+EchoでREST APIを作った話]]