Skip to content

Instantly share code, notes, and snippets.

@ak1t0
Last active July 27, 2023 15:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ak1t0/27398c99f6a16de58559ca4846c28ea9 to your computer and use it in GitHub Desktop.
Save ak1t0/27398c99f6a16de58559ca4846c28ea9 to your computer and use it in GitHub Desktop.
サーバサイド Go 入門資料 まとめ

サーバについて

How I write Go HTTP services after seven years
https://medium.com/@matryer/how-i-write-go-http-services-after-seven-years-37c208122831
GoでとあるAPIサーバを実装し直した話
http://tech.mercari.com/entry/2016/12/19/180000
golangのHTTPサーバを構成しているもの
https://reiki4040.hatenablog.com/entry/2017/03/01/212647
GoでJSON APIを書く
http://sgykfjsm.github.io/blog/2016/03/13/golang-json-api-tutorial/
Go 言語の http パッケージにある Handle とか Handler とか HandleFunc とか HandlerFunc とかよくわからないままとりあえずイディオムとして使ってたのでちゃんと理解したメモ
https://qiita.com/nirasan/items/2160be0a1d1c7ccb5e65
http - The Go Programming Language
https://golang.org/pkg/net/http/#HandlerFunc

テストについて

Go言語のHTTPサーバのテスト事始め
https://qiita.com/theoden9014/items/ac8763381758148e8ce5
Go の Test に対する考え方
https://qiita.com/Jxck_/items/8717a5982547cfa54ebc
httptest - The Go Programming Language
https://golang.org/pkg/net/http/httptest

graceful shutdown / hot-deploy について

Server::Starterから学ぶhot deployの仕組み
http://blog.shibayu36.org/entry/2012/05/07/201556
lestrrat-go/server-starter: Go port of start_server utility (Server::Starter)
https://github.com/lestrrat-go/server-starter
Go lang hot-deploy with go-server-starter
https://takeshiyako.blogspot.jp/2015/10/go-lang-hot-deploy-with-go-server-starter.html
Go言語で知るプロセス(3)
http://ascii.jp/elem/000/001/467/1467705/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment