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

Go のライブラリやっていき 💪 #go #golang / Let's creating a original library by Go

Go のライブラリやっていき 💪 #go #golang / Let's creating a original library by Go

Gopher 道場 1st grad ceremony LT

Osamu TONOMORI

May 16, 2018
Tweet

More Decks by Osamu TONOMORI

Other Decks in Programming

Transcript

  1. Agenda 1. 自己紹介 (30 sec) 2. ライブラリ作るモチベーション (1 min) 3.

    ライブラリの公開方法 (20 sec) 4. ライブラリを使ってもらうには (3 min) 5. まとめ (10 sec) Gopher Dojo 1st Grad Ceremony 2
  2. 自己紹介 主森 理 - Osamu TONOMORI 株式会社メルペイ Software Engineer (Backend)

    https://{twitter,github,etc.}.com/ osamingo Gopher Dojo 1st Grad Ceremony 3
  3. Continuous Integration Covarage 集計には、CodeCov がオススメ! Chrome Extention が、バリ便利 Ref. GitHub

    を快適にブラウジングするための3 種の神器 Gopher Dojo 1st Grad Ceremony 19
  4. Documentation README は、ちゃんと書きましょう! 何が嬉しくなるライブラリなのか、1 文で理解できるように 特に License はちゃんと明記しないと、使う側も困ります Benchmark の結果を乗せると、優位性が明らかになって良い

    # Machine: MacBook Pro (Retina, 15-inch, Mid 2015) # CPU : 2.8 GHz Intel Core i7 # Memory : 16 GB 1600 MHz DDR3 BenchmarkEncoder_Encode-8 20000000 107 ns/op 46 B/op 1 allocs/op BenchmarkEncoder_Decode-8 30000000 46.8 ns/op 0 B/op 0 allocs/op PASS ok github.com/osamingo/indigo/base58 3.730s Gopher Dojo 1st Grad Ceremony 20
  5. Static Code Analysis Go Report Card 必ず利用してほしい gofmt , go

    vet , gocyclo , golint , ineffassign を計測してくれる それだけでなく、 License の有無や、Misspell も判定してくれる 頑張って、評価 A+ をとりましょう 類似サービスとして、CODEBEAT, CODE CLIMATE もある Gopher Dojo 1st Grad Ceremony 22