codingecho

日々の体験などを書いてます

golang

IntelliJ IDEAを使ったGo言語のセットアップ

Go言語のlocalへのインストール方法からIntelliJ IDEAへのプロジェクトのインポートと設定について記述します。 Go言語のインストール Go言語のインストールにはgoenvを使用します。 $ git clone https://github.com/syndbg/goenv.git ~/.goenv bashを使用し…

Building a CI for Golang test

I built a CI with Jenkins for Golang test. We run go test on a Docker container and even run Jenkins on a Docker container. Directories app ├── docker │ ├── dockerfiles # Dockerfiles for unit test │ └── test │ ├── init-db.sh # This initial…

Golangでユニットテスト書くテクニック

Goは他のフレームワークにあるような大きなアサーションツールを持っていません。Goでは testing.T オブジェクトのメソッドがテストに使われます。 T.Error(args ...interface{}) または T.Error(msg string, args interface{}) はメッセージを受け取ってテ…

I went to builderscon tokyo 2017

I went to builderscon tokyo 2017 from August 3rd to 5th. The eve of the conference I heard some fascinating talks, but I was told not to tell anyone about them, so unfortunately I can't write about them. I think the organizers should keep …

How to make development environment of Go with Mono and Protocol Buffers

I joined a project, and I begin to develop an application in it. This project has used golang. So I studied it and prepared its developing environment. This article is the what I did to make development environment of GO. Prerequisite Inst…