Goã¯æãã¤ããã¨ãã«ãµã¯ãã¨ã¤ãã£ã¦å³å ¬éã§ãããæé«ã ã¨æãã https://gist.github.com/ ã使ãã°ãã©ã¦ã¶ã§ç°¡åã«Goãæ¸ãã¦å ¬éã§ããã è¦ç¹ Goã¯Gitã¬ãã¸ããªä¸ã«åå¨ããããã±ã¼ã¸ãæå®ã§ãã Gistã¯Gitã¬ãã¸ããªã¨ãã¦ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãåãã¦ãã Gistã«ã¯è¤æ°ã®ãã¡ã¤ã«ãç½®ãã ããããGoã«ã¯Gemfileããè¦ããªãã£ã ããæ¹ package nurupo import ( "errors" "strings" ) func Nurupo(message string) error { if strings.Contains(message, "ã¬ãã½") { return errors.New("ã¬ã") } return nil }
å æ¥ã Goã«åãã¦ç§ã®ããããåãè¾¼ã¾ã ãã³ã³ããªãã¥ã¼ã¿ã«ä»²éå ¥ããã¾ããã ãã®ãããã¯ã database/sql.Stmt ãããã¼ã«ä½¿ã£ãæã«æ§è½ãã ããã16ã³ã¢ä»¥ä¸ã®ã³ã¢æ°ã«ã¹ã±ã¼ã«ããªãã¨ããåé¡ã解決ãããã®ã§ãã ãããã£ãåé¡ãã©ããã£ã¦èª¿æ»ããã®ãã¨ãGoã«ããããåãè¾¼ã¾ããã¾ã§ã®æé ãç´¹ä»ãã¾ãã èæ¯ ç§ã¯ TechEmpower ã® FrameworkBenchmarks ã¨ãããããããªè¨èª/ãã¬ã¼ã ã¯ã¼ã¯ã§åä¸ã®ã¢ããªãä½ã£ã¦ãã³ããã¼ã¯ããã¨ããããã¸ã§ã¯ãã§ã主ã«Pythoné¢é£ã®ã¡ã³ããããã¦ãã¾ãã Goã«ãèå³ãããã®ã§ãGinã¨ãããã¬ã¼ã ã¯ã¼ã¯ã追å ãããã³ã¼ãã¬ãã¥ã¼ã«åå ããããã¦ãã¾ãã 2014-05-01 ã«è¡ãããååã®ãã³ããã¼ã¯ Round 9 ã§ã¯ã PEAK Hosting ãå®è¡ç°å¢ã«å ããã¾ããããã®ç°å¢ã¯ããã¥
Docker Meetup Tokyo #3 㧠âPorting Docker to FreeBSDâ ã¨ããé¡ã§ã©ã¤ããã³ã°ãã¼ã¯ãã¦ãã¾ãããæéé åã¯ãã¾ããããæå¾ã®ã»ããé§ã足ã«ãªãã¤ã¤ãã話èªä½ã¯ãããªãã«ãããã¿ããã§ããã£ãã§ãã ã¹ã©ã¤ã㯠Speaker Deck ã«ã¢ãããã¼ã ãã¾ããããã¹ã©ã¤ãã ããèªãã§ããããªã«ããããã¨ããªãã®ã§ããã¤ãè£è¶³ã çµå± FreeBSD ã§åãã®? ãããã ã¨ããã¾ãã¦ãã¼ã¢ã³ã¨ãã¦ã® Docker Engine ãèµ·åã¯ããããã«ãªãã¾ããããã¾ã execdriver ã¨ãããèå¿ã® jail ã使ãäºå®ã®ã¨ãããã¨ããã¾ãã¦ãã¾ãããkzys/docker ã« execdriver-jail ã¨ãããã©ã³ã ããããããã« jail ãã¤ããå·®å ã¨ãã¾ã ãã¼ã¸ããã¦ããªãä¾ãã° #6759 ããããã¯ãã£ã¦ããã®ã§ã
ä¸è¨è³ªåã«ãããã50æå以å ãç®å®ã«ç°¡åã«èª¬æãããã¨ã ããã±ã¼ã¸å ã«å®ç¾©ããé¢æ°ãå¤é¨ã«å ¬éããã«ã¯ã©ãããã°è¯ããï¼ éåæã«å¦çãè¡ãçºã®å½ä»¤ã¯ï¼ é¢æ°ãæããéã«å¦çãå®è¡ããã«ã¯ã©ããããï¼ goroutineã®åæå®è¡æ°ãå¤æ´ããã«ã¯ã©ããããï¼ ã³ã³ãã¤ã©ããªã³ã«ã8g/6g/5gã8l/6l/5lã¨ããååã«ãªã£ã¦ããçç±ã¯ï¼ Goã®ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®å®è£ ã¯ä¸è¬çã«ä½ã¨å¼ã°ãã¦ããé¡ãï¼ ã¬ã·ã¼ããnilã®å ´åã«ã¡ã½ãããå¼ã³åºãã¨ä½ãèµ·ãããï¼ å¯å¤åå¼æ°ã¯ã©ã®æ§ã«å®ç¾©ãããï¼ é¢æ°å ã§å®ç¾©ããããã¼ã«ã«å¤æ°ã®ã¢ãã¬ã¹ãæ»ãå¤ã¨ãã¦å¤é¨ããåç §ããã¨ã©ããªããï¼ interfaceã¨structã®éãã¯ä½ãï¼ panicãè£è¶³ãã¦å¼·å¶çµäºãããªãçºã«ã¯ã©ããããï¼ çã ããã±ã¼ã¸å ã«å®ç¾©ããé¢æ°ãå¤é¨ã«å ¬éããã«ã¯ã©ãããã°è¯ããï¼ é¢æ°åã®å é ã大æåã«ãã¾ã
_ [è¨èª] The Go Programming Language ããç¥ã£ã¦ãã人ã¯ç¥ã£ã¦ããGoogleããã®ã·ã¹ãã ããã°ã©ãã³ã°æ°è¨èªGoã ãã£ããç¥ãã«ã¯ä¹ãé ããæããããã©ãå°ãã ãã³ã¡ã³ããã¤ãã¦ãããã ç®æ¬¡ è¨èªä»æ§ è¨èªå®è£ æè¡çã§ãªã話 ã¾ã¨ã è¨èªä»æ§ ç·åçã«è¦ã¦ãé常ã«ãã©ã³ã¹ãèãã¦ããããã«æããã JavaãC++ã®ãããªè¤éããæãã¦ãã·ã³ãã«ã«å¾¹ããä¸æ¹ã è¨èªå¥½ããåºæ¿ãããããªæ°ããã¢ã¤ãã£ã¢ããããããã«é ç½®ãã¦ããã ç¹å¾´ã§ãããã³ã³ãã¤ã«ãé«éãã¨ããã®ãã ãã®ã·ã³ãã«ãªè¨èªä»æ§ãå¯ä¸ãã¦ããã¨æãããã å人çã«ã注ç®ããã®ã¯ãªãã¸ã§ã¯ãæåæ©è½ã¨ã並åæ©è½ã interfaceã«ãããç¶æ¿ã®ãªããªãã¸ã§ã¯ãæå(duck typing)ã¯ãããªãç§å¥½ã¿ã§ããã æããããããè¨èªã欲ããã£ããinterfaceã®ã¿åççµåã許ã
æ¨æ¥ãGoogleããçºè¡¨ãããæ°ããè¨èªãgoã ã ãããã®ååã«ã¤ãã¦10å¹´åãããGo!ãã¨ããè¨èªãä½æãã¦ãããæ¬ã¾ã§åºçãã¦ããä½è (Francis McCabe)ãããç§ãéçºããããã°ã©ãã³ã°è¨èªã®å称ã¨ãã¦æ¢ã«ä½¿ããã¦ãããã¨è¦æãããã¦ããã Go! ã¨ã¯ Go!ã¯ãWikipedia(è±èªç)ã«è¼ã£ã¦ããã 2003å¹´ããéçºããããã«ããã©ãã¤ã è¨èªã§ãã³ã¼ãã¯ãããªæã(99 Bottles of Beer | Language Go! ããå¼ç¨)ãErlangã«è¿ã? -- -- 99 Bottles of Beer in Go! -- John Knottenbelt -- -- Go! is a multi-paradigm programming language that is oriented -- to the needs of programm
追è¨:ãkzk's blogãã®ãWriting TokyoCabinet wrapper for Go languageãã§ç´¹ä»å¾¡ç¤¼ããã®è¨äºã¯ cgo ã使ã£ã TokyoCabinet ã®ã©ããã¼ã®æ¸ãæ¹ã解説ãã¦ããã®ã§ãä¸è¨ã®ã³ã¼ãã¨çµã¿åããã¦æ¬å½ã« tc ã backend ã«ãªã£ã¦ãã KVS ãæ¸ãã¦ã¿ãã®ãããããã ãæ©é Go è¨èªã試ãã¦ã¿ãï¼ãã¨ãã ãGo ã§ç¡é§ã«ãã£ã³ãã«ã使ã£ã¦ã¯ã¤ãã¯ã½ã¼ãã®ãããªãã®ãæ¸ãã¦ã¿ããã¨ãã ãã¡ãã¯ã¨ããã¨ã試ãã« memcache ãã¤ããªãããã³ã«ã§éä¿¡ãã KVS ãã©ããæ¸ããã ãµã¼ãã®ã¤ãã³ãã«ã¼ã㧠go ããã°å ¨é¨æ¸ãã®ã楽ã¡ãã§ããã 追è¨: HandleConn() ã®ä¸ã§ãbackend_ch ã backend ã¨ã®éä¿¡ã¨å信両æ¹ã«ä½¿ã£ã¦ããã®ã ãã©ãããã«ããããã«ãã¾ã£ãã誤ãã ã¨ãããã¨ãå
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}