Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Go言語でAPI開発して得た知見 / development of sentence check api with Go lang

Islands5
October 05, 2018

Go言語でAPI開発して得た知見 / development of sentence check api with Go lang

普段Rubyを書いてるエンジニアがGoでAPIサーバーを作成した時の知見を共有します。
APIってこの機能必要だよね、それってどうする?的な知見や
Ruby触っててGoはこんな感じでした
といった知見を共有しました。

Islands5

October 05, 2018
Tweet

More Decks by Islands5

Other Decks in Programming

Transcript

  1. 12

  2. Goを触ってみた所感 よかった点◯ ・型って便利(e.g. Hash, HashWithIndifferentAccess, BSON::Document) ・テストに対する見えない力 - Railsはリスタートしなくてもコードを書き換えると適用される -

    Goは変更を確認するため、コンパイルし直す必要がある #=> テストを書いて実行する方が早い ・並列処理超簡単goroutine、チャネル最高
  3. まとめ API作成で必要になりそうな知識 - Echo使うとmiddlewareのサポートで色々楽に対応できる - プロセス管理はsupervisorがよかった - well-known-portをlistenする手法の紹介 文字列 -

    Goの文字列処理はあらかじめ頭を整理しておくとよい Goを触ってみた所感 - 全体的に書きやすい - 型、型推論、go fmtがいい仕事をしてくれてるんだと思います