&tag(Go/入門); *目次 [#d5b092b8] #contents *関連ページ [#v70f51d0] *参考情報 [#t915fe1d] -[[A Tour of Go:http://go-tour-jp.appspot.com/#1]] -[[go言語の始め方(1) — PythonMatrixJp:http://python.matrix.jp/2013/05/09/go_start1.html]] *設定 [#k666fb8f] **参考情報 [#k014f601] -[[EmacsでのGo言語編集環境 - unknownplace.org:http://unknownplace.org/archives/golang-editing-with-emacs.html]] -[[goインストールから、emacsにgo-mode, go-autocompleteを導入するまで - $shibayu36->blog;:http://blog.shibayu36.org/entry/2013/11/08/194958]] **インストール [#g9eb7292] ***MacPortsの場合 [#o5cf3f11] -portsコマンドでインストール。 port install go **Emacsの設定 [#l0d7c353] ***go-modeのインストール [#t4e07fb9] -M-x package-installでgo-modeをインストール。 -.emacsに以下を追加。 #pre{{ ;; go-mode (require 'go-mode-load) }} ※ 「`flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'.」という警告がでる。解消方法は不明。 *基本 [#z076d348] ** Hello World [#e9e056a6] -基本プログラム。 #pre{{ package main import "fmt" func main() { fmt.Println("Hello, 世界") } }}