go test ã®ãã£ãã·ã¥ãæ¶ãã®ã¯ç°¡å$ go clean -testcache 以ä¸ã§ãï¼ $ go test ./... ok github.com/oxequa/realize (cached) ok github.com/oxequa/realize/realize (cached) ãã®ããã« (cached) ã¨ãªã£ã¦ãããã®ãããã $ go clean -testcache $ go test ./... ok github.com/oxequa/realize 0.086s ok github.com/oxequa/realize/realize 0.389s ãã®ããã«ãå®è¡æéã表示ããã¦ããããã£ãã·ã¥ãæ¶ãã¦ãããã¨ãåããã¾ããã ã¡ãªã¿ã«ããã£ãã·ã¥ãç¡è¦ããæ¹æ³ã¯ããã²ã¨ã¤ããã 以ä¸ã®ããã« -count=1 ãã¤ãã¦ããã°OKã§ãã $ go tes
Golangæ¨æºã®jsonããã±ã¼ã¸ã§ã¯ãjsonãstructã«å±éããæ¹æ³ã¨ãã¦ã json.Unmarshal ã¨ããé¢æ°ã¨ã json.NewDecoder ã§ãã³ã¼ããçæãã Decode é¢æ°ãå¼ã¶æ¹æ³ãããã ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ã func Unmarshal(data []byte, v any) error func NewDecoder(r io.Reader) *Decoder 㨠func (dec *Decoder) Decode(v any) error ãã¤ãåã渡ãã®ã¨ãio.Readerãã渡ãã¨ããç¹ãç°ãªãããããã«ããæåã®éããæåããã£ã¦ããªãã£ãã éãã®çµè« Unmarshalã«æ¸¡ããã¤ãåã¯ã²ã¨ã¤ã®jsonã¨ãã¦æ£ããå½¢å¼ã§ããå¿ è¦ããã Decoderã«io.Readerã渡ãã¦Decodeããæ¹æ³ã¯ãDecodeã¯ã¹ããªã¼ã ãã次ã®j
SREã®@deeeet ã§ãã Mercariã§ã¯Slack Botã使ãæ§ã ãªæ¥åã®èªååãè¡ã£ã¦ãã¾ããä¾ãã°ã¡ã¤ã³ã®APIã®Releaseã¯Botã«ããèªååãããã¦ãããJPã¨USã¨UKã®3æ ç¹ã§1æ¥ã«10å以ä¸ã®ReleaseãSlackä¸ã§å®ç¾ãã¦ãã¾ãï¼ãã以å¤ã«ãå¤ãã®äºä¾ãããã¾ãï¼ã ããã¾ã§ã®Slack Botã¯åºæ¬çã«ã¯æåãã¼ã¹ã§ã®ããåããæ®éã§ããï¼ã°ã©ããªã©ã®ç»åãè¿çã¨ãã¦å©ç¨ãããã¨ã¯ããã¾ãï¼ããSlackã¯ããInteractiveãªããã¨ããå®ç¾ã§ããInteractive Messageã¨ããä»çµã¿ãæä¾ãã¦ãã¾ããããã«ããButtonã«ãã決å®ãMenuã«ããé¸æã¨ãã£ãã¢ã¯ã·ã§ã³ãã¦ã¼ã¶ã«ã¨ããããã¨ãã§ããããã«ãªãã¾ãã Buttonã®ä»çµã¿èªä½ã¯å¤ãããæä¾ããã¦ãã¾ãããä»ã®Teamã¸ã®é å¸ãåæã§ããOAuthã®ä»çµã¿ãæºåããå¿
Golangã®templateãã¡ã¤ã«ã§isãnot equalãandæ¡ä»¶ãoræ¡ä»¶ã®æ¸ãæ¹ã調ã¹ãã®ã§åå¿é²ã§ãã â» é©å®è¿½å ãã¦ããã¾ãã isè©ä¾¡ {{ if eq num 1 }} // if num == 1 //ã以ä¸å義 {{ if eq ( .num, 1 ) }} not equelè©ä¾¡ {{ if ne .num 1 }} // if num != 1 //以ä¸å義 {{ if ne (.num, 1) }} and è©ä¾¡ {{ if and (eq .str1 "a") (eq .str2 "b") }} // if str1 == 1 && str2 == b and A B ã¾ã㯠and (A, B) ã«ãªãã¾ãã or è©ä¾¡ {{ if or (eq .str1 "a") (eq .str2 "b") }} // if str1 == 1 || str2
ä½ãèµ·ãã¦ãããï¼ ã»ãã¼ã«ã«éçºç°å¢ã§ go ã®ãã³ãã¬ã¼ããã¡ã¤ã«ãæ´æ°ãã¦ã GAE ã® auto reload ãèµ°ããªã ã»*.go ãã¡ã¤ã«ãæ´æ°ããã¨ãã¯èµ°ã ã»go version go1.6.2 (appengine-1.9.40) darwin/amd64 goapp èµ·åæã® error log /usr/local/Cellar/app-engine-go-64/1.9.40/share/app-engine-go-64/google/appengine/tools/devappserver2/mtime_file_watcher.py:115: UserWarning: There are too many files in your application for changes in all of them to be monitored. You may h
ã¯ããã« ã¡ã«ã㤠ã¨ãã¹ãã¼ããã¼ã ã®tenntennã§ãã ã¡ã«ã«ãªã°ã«ã¼ãã§ã¯ãæ¯é±éææ¥ã«Go Fridayã¨ãã社å åå¼·ä¼ãéå¬ãã¦ãã¾ãã æ¯é±ãã£ã¦ããã¨ãããªãã«ç¥è¦ãæºã¾ã£ã¦ããã®ã§ãå®æçã«âãã¼ã話âã¨ãã¦ããã°ãæ¸ããã¨ãã話ã«ãªãã¾ããã ä»åã®è¨äºã§ã¯ãå æ¥ã®Go Fridayã§è©±é¡ã«ããã£ãéå ¬éãªæ©è½ã使ã£ããã¹ãã«ã¤ãã¦æ±ãããã¨æãã¾ãã ãªããGoã«ããããã¹ãã®ææ³ããã¹ãããããã³ã¼ãã®æ¸ãæ¹ã«ã¤ãã¦ã¯ãGopherCon 2017ã§ãçºè¡¨ããã£ãmitchellhããã®âAdvanced Testing with Goâ(ã¹ã©ã¤ã/åç»)ãåèã«ãªãã¾ãããã¼ãã«é§åãã¹ãããã¹ããã«ãã¼ãªã©é常ã«åå¼·ã«ãªãã®ã§ãã¾ã è¦ããã¨ã®ãªãæ¹ã¯ãã²ã¹ã©ã¤ããåç»ãã覧ãã ããã TL;DR Goã®ãã¹ãã§ã¯ãã¹ã対象ã¨ãã¹ãã³ã¼ããå¥ããã±ã¼ã¸ã«ã§ãã
çµäº 2017/09/29ï¼éï¼ 19:00ã golang.tokyo #9 ä»åã®ãã¼ãã¯è¨è¨ï¼ã¢ããªã±ã¼ã·ã§ã³ã¢ã¼ããã¯ãã£ï¼ã§ã makoto_tano ä» æ±äº¬é½æ¸è°·åºæ¸è°·2-21-1 (æ¸è°·ãã«ãªã¨ éå11Fï¼
西澤ã§ããS3ãã±ãããç´æ¥ãã¦ã³ããã¦ãã¡ã¤ã«ã·ã¹ãã ã®ããã«ä½¿ãããã±ã¼ã¹ãããã¾ãããs3fsã¯ããããã©ã¼ãã³ã¹ã«é£ãããã¾ããGoã§æ¸ããã¦ãã¦s3fsãããé«éã«åä½ãããã¨ã売ãã«ãã"goofys"ã¨ãããã¼ã«ãè¦ã¤ããã®ã§ãæ©é試ãã¦ã¿ããã¨ã«ãã¾ããã s3fs-fuse/s3fs-fuse · GitHub GitHub - kahing/goofys: a Filey System for Amazon S3 written in Go åæããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã« ä»åã¯Amazon Linux(Amazon Linux AMI 2015.09.1 (HVM), SSD Volume Type)ç°å¢ã§æ¤è¨¼ãè¡ãã¾ãããgolangã¨fuseããã±ã¼ã¸ãåæã¨ãã¦å¿ è¦ã¨ãªãã¾ãã®ã§ãä¸è¨ã®ããã«ã¤ã³ã¹ãã¼ã«ãã¾ãã $ sudo yum install golang
æ¥æãããã«ã¯Go 1.7ããªãªã¼ã¹ãããããªã®ã§ãããCONTRIBUTORSã«ååãè¼ããããã( https://github.com/golang/go/blob/release-branch.go1.7/CONTRIBUTORS#L915 )ãªã®ã§è¨å¿µã¨ã³ããªã§ãã å 容èªä½ã¯ã4æã«ãã£ãGoCon 2016 Spring( http://gocon.connpass.com/event/27521/ )ã§ã®çºè¡¨æ¸ã¿ã§ãã tl;dr ä¸é¨ã®ãã£ã¹ããªã®ææ°çã§linux/386ã§ãã«ããããã¤ããªãèµ·åããã§ããªããã¨ãããã°ããã£ã åé¡ã¯runtimeã®ã¢ã»ã³ãã©é¨åã ã£ããã©ããªãã¨ããããæ¸ãã ãããæåºâã³ã¼ãã¬ãã¥ã¼âããã¨ãâãã¼ã¸ã¾ã§ã3æ¥ç¨åº¦ã¨ã¹ã ã¼ãºã«é²è¡ã§ãã https://go-review.googlesource.com/#/c/21190/
ç½ã¤ã®ã®éçºè ã®æ£®æ¬ã§ãã ç½ã¤ã®ã§ã¯ Go è¨èªã§ãã¥ã¼ã¹è¨äºã®ãã¥ã¬ã¼ã·ã§ã³ããã ã«ã¡ãªãª API ã¨ãããµã¼ãã¹ãéçºãã¦ãã¾ããç´1å¹´2ã¶æåãGo ã使ã£ã¦éçºãå§ããã¨ãã«å½æ調ã¹ãå 容ãæ´çãã¦ä»¥ä¸ã®è¨äºãæ¸ãã¾ããã Goè¨èªã§ API ãµã¼ãã¼ãéçºãã 1年以ä¸ã«æ¸¡ãéçºãç¶ç¶ãã¦ãã¦å¤ãã£ããã¨ãå¤ãã£ã¦ãªããã¨ãªã©ããã£ãã°ããã«ã¾ã¨ãã¦ã¿ã¾ãããã¾ãã¾éå»ã®è¨äºã®ã¯ã¦ãã³ã¡ã³ããè¦è¿ãã¦ã㦠以ä¸ã®ã³ã¡ã³ã ãè¦ã¤ãã¾ããã æè¿ golang å°å ¥äºä¾å¢ãã¦æ¥ããã©ãå°å ¥å¾ä¸å¹´ãããã®ã¡ã³ããã³ã¹ãã§ã¼ãºãªäºä¾ã«ã¤ãã¦èãã¦ã¿ãããç¶ç¶çããªããªã¼ã¿ãããªã®ãã¾ã æ©ãã®ããªï¼ ã¾ã ã¾ã ã¡ã³ããã³ã¹ãã§ã¼ãºã«ã¯ãªã£ã¦ããªãã¦ç¾å¨ãæ´»çºã«éçºä¸ã§ãããç¶ç¶çããªããªã¼ã«ã¤ãã¦ç½ã¤ã®ã§ã¯ç¹å¥ãªãã¨ããã¦ãªããansible ã使ã£ã¦ãããã¤ãã¦ããã®ã¿ã§ããGo 1
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}