TRY AND ERROR

気になったこと、勉強したこと、その他雑記など色々メモしていきます。。Sometimes these posts will be written in English.,

Entries from 2017-04-19 to 1 day

ChatworkAPIがバージョンアップしました。

ChatworkAPIがv1からv2にバージョンアップしました。help.chatwork.com ユーザー数が増えてmessage_idの桁が足りなくなったみたいな感じか?? 対応としては、基本エンドポイントを変更するくらいです。以前アップしたChatworkのAPIラッパーについてはは修正…

How to check if index is exist in Array or Slice in Golang?

Go

I guess in Golang, there isn't any method to check that index is exist in Slice, for PHP like "isset()". So I take a method I made like below. func isset(arr []string, index int) bool { return (len(arr) > index) }By the way, in Golang when…