LoginSignup
19
21

More than 5 years have passed since last update.

go getでgithubからライブラリをimportしてみた

Last updated at Posted at 2014-09-10

go getの準備

GOPATH用フォルダ作成
mkdir ~/gocode
$HOME/.bashrc
+ export GOPATH=$HOME/gocode
設定反映
source $HOME/.bashrc

go get実行

go get実行
go get github.com/mgutz/ansi

import文の書き方

import文の書き方
import {
    "fmt"
    "github.com/mgutz/ansi"
}
19
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
21