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

Togoo : Go で CLI を作って学んだこと / Gomoku #3 Togoo

Togoo : Go で CLI を作って学んだこと / Gomoku #3 Togoo

2016-02-15 に開催された「ごもく会 #3」で LT した資料です.
http://eure.connpass.com/event/25695/

詳しくはブログにまとめています.
http://kakakakakku.hatenablog.com/entry/2016/02/15/234554

Yoshiaki Yoshida

February 15, 2016
Tweet

More Decks by Yoshiaki Yoshida

Other Decks in Technology

Transcript

  1. • @kakakakakku • Yoshiaki Yoshida • CyberAgent Crowd Funding, Inc.

    • Makuake • Ruby, DevOps, Certified Scrum Master • http://kakakakakku.hatenablog.com/ • https://github.com/kakakakakku
  2. Togoo Usage • togoo init ( -f ) • togoo

    add • togoo update • togoo done • togoo delete • togoo list ( -a ) ʢσʔλ͸ SQLite ʹొ࿥ʣ
  3. ؀ڥߏங͠Α͏ • vim & IntelliJ Ͱ։ൃ؀ڥΛ੔͑ͨ • golint = Ոఉڭࢣ

    • https://github.com/golang/lint • goimports • https://github.com/bradfitz/goimports • Travis Ͱ CI ͯ͠όοδΛషΔ
  4. ͓࡞๏ΛֶͿ • Go Code Review Comments • https://github.com/golang/go/wiki/CodeReviewComments • Effective

    Go • https://golang.org/doc/effective_go.html • Go for gophers • http://talks.golang.org/2014/go4gophers.slide#1
  5. ύοέʔδΛֶͿ • cli.go : https://github.com/codegangsta/cli • gcli : https://github.com/tcnksm/gcli •

    go-sqlite3 : https://github.com/mattn/go-sqlite3 • go-homedir : https://github.com/mitchellh/go-homedir • Table Writer : https://github.com/olekukonko/tablewriter table := tablewriter.NewWriter(os.Stdout) table.SetHeader([]string{"No", "Title", "Status"}) table.SetBorder(true) table.AppendBulk(data) table.Render()
  6. • ϙϞυʔϩςΫχοΫ࿈ܞͰ1೔த࢖͏ • ຖேλεΫΛચ͍ग़͢ • togoo add … • togoo

    add … • togoo add … • ϙϞυʔϩ͝ͱʹλεΫΛ׬ྃ͢Δ • togoo done … • togoo done … • togoo done …
  7. • ࣗݾྲྀϙϞυʔϩ • ۀ຿֎ͷ OSS ׆ಈͳͲ΋ togoo add ͢Δ •

    ࡶ຿΋શͯ togoo add ͢Δ • ͋͑ͯίϯςΩετεΠονΛى͜͢ • ʮऩ֭చݮͷ๏ଇʯ