A Tour of Go
Introduction Go is a new language. Although it borrows ideas from existing languages, it has unusual properties that make effective Go programs different in character from programs written in its relatives. A straightforward translation of a C++ or Java program into Go is unlikely to produce a satisfactory resultâJava programs are written in Java, not Go. On the other hand, thinking about the prob
追è¨:ãkzk's blogãã®ãWriting TokyoCabinet wrapper for Go languageãã§ç´¹ä»å¾¡ç¤¼ããã®è¨äºã¯ cgo ã使ã£ã TokyoCabinet ã®ã©ããã¼ã®æ¸ãæ¹ã解説ãã¦ããã®ã§ãä¸è¨ã®ã³ã¼ãã¨çµã¿åããã¦æ¬å½ã« tc ã backend ã«ãªã£ã¦ãã KVS ãæ¸ãã¦ã¿ãã®ãããããã ãæ©é Go è¨èªã試ãã¦ã¿ãï¼ãã¨ãã ãGo ã§ç¡é§ã«ãã£ã³ãã«ã使ã£ã¦ã¯ã¤ãã¯ã½ã¼ãã®ãããªãã®ãæ¸ãã¦ã¿ããã¨ãã ãã¡ãã¯ã¨ããã¨ã試ãã« memcache ãã¤ããªãããã³ã«ã§éä¿¡ãã KVS ãã©ããæ¸ããã ãµã¼ãã®ã¤ãã³ãã«ã¼ã㧠go ããã°å ¨é¨æ¸ãã®ã楽ã¡ãã§ããã 追è¨: HandleConn() ã®ä¸ã§ãbackend_ch ã backend ã¨ã®éä¿¡ã¨å信両æ¹ã«ä½¿ã£ã¦ããã®ã ãã©ãããã«ããããã«ãã¾ã£ãã誤ãã ã¨ãããã¨ãå
ã¯ããã« Google ããæ°ããã°ã©ãã³ã°è¨èª The Go Programming Language ãçºè¡¨ããã¾ãããï¼ ã¨ããããã§ããã£ãã試ãã¦ã¿ããã¨æãã¾ãã ç°å¢ã¯ Mac OS X 10.6 ã¤ã³ã¹ãã¼ã« ãã£ããã¤ã³ã¹ãã¼ã« Getting Started - The Go Programming Language ãè¦ãªãã ç°å¢ã®æºå ãã£ã¬ã¯ããªãä½ã amacbook% cd ~ amacbook% mkdir go amacbook% mkdir binç°å¢å¤æ°ã®è¨å®ãããã~/.zshrc ã«ä»¥ä¸ã追å # Go ç¨ export GOROOT=$HOME/go export GOOS=darwin export GOARCH=amd64 export GOBIN=$HOME/bin export PATH=$GOBIN:$PATH Mercurial ã
ã©ã³ãã³ã°
ã¡ã³ããã³ã¹
ãç¥ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}