Entries from 2019-02-28 to 1 day
intから var n int = 7 s := strconv.Itoa(n) int64から var n int64 = 235 s := strconv.FormatInt(n, 10)// 10進数 []byteから var message = []byte("アロハ〜") s := string(message) 参考 yourbasic.org chidakiyo.hatenablog.com
三項演算子が無いとか、めっちゃびびったわ🙄 amount := map[bool]int64{true: t.Amount, false: -t.Amount}[t.Type == Deposit] 参考 qiita.com
カラムのタイプをenumにしたら、データ投入時に怒られるようになってめっちゃ時間取られた件☠️ panic: Got unexpected error: failed to insert into foreign table: models: unable to insert into transactions: Error 1265: Data truncated for column 't…
プロセスをチェックして切る $ ps -ax | grep mysql $ kill <process_id>brewから削除 バージョン指定してインストールしている場合は、@の後にバージョン追記する $ brew remove mysql@5.6 $ brew cleanup設定ファイル等を消す sudo rm -rf /usr/local/var/mysql ...バ</process_id>…