公式ページ:The Go Programming Language http://golang.org/
このページ:プログラミング言語Go 日本語情報 http://wikihouse.com/golang/ http://wikihouse.com/golang/?#qcd2b741
"Go"はGoogleが開発しているプログラミング言語。公式サイトは golang.org。シンプルで速く安全で安定していて楽しくオープン ソースな言語です。
こんな書式です。
package main import "fmt" func main() { fmt.Printf("Hello, 世界\n") }
http://golang.org/doc/install.html
基本Linux(などUNIX系)とMacOSXにしか対応していない(2009-11現在)。
注意! 2009-11-12 現在 「Go」はWindowsにportされてません。
以下はただ試しただけです。
Windowsでやってみましたが失敗でした(2009-11-12現在)
MinGW
MinGW 5.1.6
http://sourceforge.net/projects/mingw/
http://sourceforge.net/projects/mingw/files/
d:\mingw としてインストール
MSYS
MinGWを有効に活用するツール類です(シェル環境)
MSYS-1.0.11.exe
他必要
mingw32-gmp-4.3.1-1.zip mpfr-2.3.2.tar.bz2 [MSYS regex]-[regex-1.20090805-1] libregex-1.20090805-1-msys-1.0.11-dll-1.tar.lzma [MSYS flex]-[flex-2.5.35-1] flex-2.5.35-1-msys-1.0.11-bin.tar.lzma [MSYS bison]-[bison-2.4.1-1] bison-2.4.1-1-msys-1.0.11-bin.tar.lzma [MinGW libiconv]-[libiconv-1.13.1-1] libcharset-1.13.1-1-mingw32-dll-1.tar.lzma svn.exe gccgoの最新ソース取得のために必要 gcc最新版 gccgo
gccgoの取得
D:\MinGW\svn\bin\svn.exe checkout svn://gcc.gnu.org/svn/gcc/branches/gccgogccgo D:\mingw\gccgo にダウンロード
圧縮して 118MB ここに置く予定
zipファイル、展開すると gccgo/ ディレクトリ
以下に2009-11-11時点でのソースが展開される
コンパイル
--- msys.bat←ここからmsys/MinGW環境 cd /d/MinGW/ mkdir workdir cd workdir (コンフィグ) ../gccgo/configure --prefix=/mingw \ --build=mingw32 --host=mingw32 --target=mingw32 \ --enable-languages=c,c++,go --enable-threads=win32 \ --enable-shared --enable-fully-dynamic-strings \ --enable-sjlj-exceptions --enable-version-specific-runtime-libs \ --enable-libgomp --enable-libstdcxx-debug \ --disable-bootstrap --disable-win32-registry --disable-nls --disable-werror \ --with-cpu-32=core2 --with-arch-32=core2 --with-tune-32=core2 \ --with-gmp=/mingw --with-mpfr=/mingw --with-ppl=/mingw \ --with-cloog=/mingw --with-host-libstdcxx='-lstdc++' \ --with-build-time-tools=/mingw/bin \ --with-gmp=/d/MinGW/ --with-mpfr=/d/MinGW/
↑
FAILED:around ../../gccgo/libstdc++-v3/include
mingw32-g++ -c -I ../../gccgo/gcc/../elfcpp -I. -Igo -I../../gccgo/gcc -I../../gccgo/gcc/go -I../../gccgo/gcc/../include -I../../gccgo/gcc/../libcpp/include -I/MinGW//include -I/usr/local/include -I../../gccgo/gcc/../libdecnumber -I../../gccgo/gcc/../libdecnumber/dpd -I../libdecnumber -g -O2 -D__USE_MINGW_ACCESS -DIN_GCC -DGO_DEBUGGING_INFO -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -g -O2 ../../gccgo/gcc/go/dataflow.cc -o go/dataflow.o In file included from ../../gccgo/gcc/go/dataflow.cc:7: ../../gccgo/gcc/go/go-system.h:14:29: tr1/unordered_map: No such file or directory In file included from ../../gccgo/gcc/go/dataflow.cc:9: ../../gccgo/gcc/go/gogo.h:9:29: tr1/unordered_set: No such file or directory In file included from ../../gccgo/gcc/go/dataflow.cc:9: ../../gccgo/gcc/go/gogo.h:670: error: `std::tr1' has not been declared ../../gccgo/gcc/go/gogo.h:670: error: ISO C++ forbids declaration of `unordered_map' with no type
:
チュートリアル
http://golang.org/doc/go_tutorial.html
学ぶ(ライブラリ)
http://golang.org/pkg
ML http://groups.google.com/group/golang-nuts/
活発(数十/日)
IRC #go-nuts
活発(常時数十人)
http://www.youtube.com/watch?v=wwoWei-GAPo&feature=player_embedded
シンプルで高速、Googleの新プログラミング言語「Go」(2009/11/11)
http://journal.mycom.co.jp/news/2009/11/11/025/?rt=na
「Go」, GoLang?, golang.org などでしょうか・・
BSD-style http://golang.org/LICENSE
CC2.0 BY
Hirosato Matsuura / abilict
Creative Commons License
http://creativecommons.org/licenses/by/2.1/jp/
プログラミング言語Go 日本語情報 is
licensed under a Creative Commons 表示 2.1 日本 License .
http://creativecommons.org/licenses/by/2.1/jp/
Based on a work at abilict.