History 14/05/09: Merge2 ãä¿®æ£ãã¾ãããhttp://twitter.com/jbking/status/464659353945911297 Intro Go ã®ã¹ã©ã¤ã¹ã¯ããããã LL ç³»ã®è¨èªãæã¤å¯å¤é·é åã®å®è£ ã¨ä¼¼ã¦ãã¾ãã ãã£ã¦ LL ã®ãããªæ軽ãªæ±ãããããã¨ãã§ãã¾ããããã®å é¨å®è£ ãç¥ããã¨ã§ããå¹çã®è¯ãã¡ã¢ãªãã³ããªã³ã°ãã§ããããã©ã¼ãã³ã¹ãæ¹åããã¡ã¢ãªã¼ãªã¼ã¯ã®é²æ¢ãªã©ã«ç¹ããå¯è½æ§ãããã¾ãã ãã®è¾ºã¯ SWrap ã¨ããã©ã¤ãã©ãªãä½ããªããåå¼·ããã®ã§ãä»åã¯ããã® Go ã®ã¹ã©ã¤ã¹ã®å é¨å®è£ ã解説ãã¾ãã Go ã®é å ã¹ã©ã¤ã¹ãç¥ãããã«ã¯ãã¾ãé åã«ã¤ãã¦ç¥ã£ã¦ããå¿ è¦ãããã¾ãã Go ã®é åã¯åºå®é·ã®ããã以ä¸ã®ããã«é·ããæå®ãã¦å®£è¨ãã¾ãã var arr [4]int func main() { arr =
è¨äºä¸ã«ééããããã¾ãããæ°åãéãã¯ãªãã¾ããã§ããã確ã 1.0X ï½ 1.1 åç¨åº¦ã®é«éåã¯å¾ããã¾ãããã³ã£ããããã»ã©ã®ç©ã§ã¯ããã¾ããã§ããããã¿ã¾ããã ãããã Go1.7 ããªãªã¼ã¹ãããããã§ãããçããå¦ä½ãéããã§ãããGo çéã®æ³¢å¹³ã㨠mattn ã§ãããã«ã¡ããï¾ï¾ï½¶ï¾ï½°(ç¥ Go1.7 ã§ã¯ã³ã³ãã¤ã©ã®æé©åãè¡ããããã«ãé度ãããªãç縮ãããæ§ã«ãªãã¾ãããæ¯æ¥ãã«ããã¦ãåã¨ãã¦ã¯é常ã«å¬ããæ©è½æ¹åã§ããã ãã¦ã¨ã¦ããã£ããâãªã¿ã¤ãã«ã§é£ã£ã¦ãã¾ã£ã訳ã§ãããæ°ã«ãããè² ããªã®ã§ã©ãã©ã話ãé²ãã¾ãã var t [256]byte func f(b *[16]byte) { for i, v := range b { b[i] = t[v] } } ä¾ãã°ãã®ã³ã¼ããè¦ã¦ä¸ããããã®ã³ã¼ãã¯ã³ã³ããæåãã¾ãããissue ã®å 容ã¯ã¹ã³ã¼
Goæ¸ãã¦ã¦ãªãã¨ãªãè¦ãã¦ãã Goã§ãã£ã¡ããããªããã¿ã¼ã³ WAFå°å ¥ãã¦ããããWebã¢ã㪠WAFèªä½ãç¾å¨ç¾¤éå²æ ç¶æ ã WAFæ¯ã«ãã³ãã©ã¤ã³ã¿ã¼ãã§ã¼ã¹ãéãã®ã§æ¢åã³ã¼ãã¤ãªãã«ã¯ã©ããã¼ãå¿ è¦ã ã©ã®WAFãLLè¨èªã«æ¯ã¹ãã¨ã¾ã ã¾ã ãã£ã¼ãã£ã¼ã®ç¶²ç¾ ç¯å²ãçãã ãªã®ã§ãã¡ããLLè¨èªã»ã©æ¥½ã«ã¯æ¸ããªããã¨ãå¤ãã ãªãã¬ã¯ã·ã§ã³ä½¿ãã¾ããã§ãã¼ã¿ã«æ§è½ã¯LLè¨èªä¸¦ã¿ã«é ãã®ãããã Go1.7ã®contextããã±ã¼ã¸ã®å°å ¥ã§æ¨æºã®HTTPãã³ãã©ã復権ããå¯è½æ§ãããæ´ã«èããäºæ³ã 追è¨: 楽ã§ããã®ãæå¾ ãã¦WAFãå°å ¥ããã®ããã£ã¡ããããªããã¨ã¾ã§ã¯è¨ãéãã ã£ããããããªãããã©ä¾ã®sqlã§Prepareãæ£ãã使ãã¦ããªãã§æ§è½åºãªãã£ã件ã¨ããå½é¢WAFã使ããªãèªåã§æ¦ãä¸èº«ãç解ãã¦ä½¿ãè¦æãå¿ è¦ã æ§é ä½ã¡ã½ããã«ãã¸ãã¯ãè©°ãè¾¼ã Goã®ææ³
Reactive Messaging Patternsèªæ¸ä¼ã®ãªãã§ãããã¤ã¯ããµã¼ãã¹ã¨Akkaã¨Goããªé¢ç½ã話é¡ãåºãã®ã§ä»£è¡¨ã§ã¾ã¨ãã試ã¿ã¨ã³ããªã§ããï¼çµæ§ãè²ã ãªè©±é¡ã«é£ãã§ããã®ã§é£åº¦é«ããï¼ ã¾ã¨ãæ¹ã¨ãã¦ã¯ãä¼è©±ãã°ã転è¨ãã¦ãæå¾ã«ã¾ã¨ããå½¢ãã¨ã£ã¦ãã¾ããã¾ããè°è«ã¨ç§ã®èããæ··ãããªãããã«ææã¯åãã¦ããã¾ãã ddd-cqrs-es.connpass.com TL;DR è¦ç´ æè¡ï¼ã©ããªè¨èªä½¿ãã¨ããã©ããªã¢ã¼ããã¯ãã£ã«ããã¨ãï¼ã®åã«ãçµç¹ããããã¯ãã®æ§æ ¼ãèãã¦æ¦ç¥ã決ãã¾ãããã ããã¦ããã®ä¸ã§æé©ã¨æãããæ¦è¡ãã¨ãããããªè¦ç´ æè¡ãæ¡ç¨ãã¾ãããã Akkaè¯ããã ãã°ï¼ä¸é¨æç²ï¼ Slackããã®å¼ç¨ã®ããããã¹ããã¼ã¹ã§ãã äºã®å§ã¾ãã¯ãèæ¨ããï¼ä»¥ä¸ã @applideveloper ï¼ã®çºè¨ã§ããã ï¼ãã®è¨äºçµ¡ã¿ã§ããã éåç¥ã§å
ã¿ãªããããã«ã¡ã¯ï¼ãã¨ã³ã¸ãã¢ããã°éå¶ãã¼ã ã®æ¿æ·ã§ãã ä»åã¯ãå æ¥ç¤¾å ã§è¡ãããGoåå¼·ä¼ã«ã¤ãã¦ç´¹ä»ãããã¨æãã¾ãã ä»åã®åå¼·ä¼ã§ã¯ããµã¤ãã¼ã¨ã¼ã¸ã§ã³ãã°ã«ã¼ãã®å社ããçºè¡¨ãããã¾ããã åå¼·ä¼ãã¹ã¿ã¼ãäºåäºç´ä¸è¦ï¼ Golangã®æ³¨ç®åº¦ã¯é«ããéå§å³æºå¡å¾¡ç¤¼ã§ããã(è¥æä¸å¿ã«ç«ã¡è¦ãï½ ããã§ã¯çºè¡¨å 容ãç´¹ä»ãããã¨æãã¾ãã â»åå¼·ä¼è³æã¯ç¤¾å æ å ±ãå«ã¾ãã¦ããããå ¨å ¬éã¯ã§ãã¾ãããã åå¼·ä¼ã®é°å²æ°ã ãã§ãæãåã£ã¦ããã ããã¨å¹¸ãã§ãã ãGoãã©ãã ï½ä¸ç´è åãGoè¨èªã§ããå¼ã£ãããåæå¦çãªã©å¨ãã®åé¡ãåæã¨è§£æ±ºæ¹æ³ï½ã æè¡æ¬é¨ åºç¤ã·ã¹ãã G ããªãªããã®çºè¡¨ã§ãã â»çºè¡¨è³æ https://github.com/imkira/gostudy å¾è¿°ãã¾ãã¨ããããã®ä»ã®çºè¡¨å 容ã¯ããµã¼ãã¹ã®ä¸ã§Goãã©ã®ããã«ä½¿ã£ã¦ããããã話é¡ã®ä¸å¿ã§ãã
1. Goå ¥é ver. 2017/04 The Go gopher was designed by Renee French. The gopher stickers was made by Takuya Ueda. Licensed under the Creative Commons 3.0 Attributions license. 2. ã¢ã¸ã§ã³ã â èªå·±ç´¹ä» â Goã®ç´¹ä» â Goã®åºæ¬ â åã»ã¡ã½ããã»ã¤ã³ã¿ãã§ã¼ã¹ â ã´ã¼ã«ã¼ãã³ã»ãã£ãã« â ãããã¯ã¼ã¯ããã°ã©ãã³ã° â go test 㨠testingããã±ã¼ã¸ â ãã³ãºãªã³ 2
package main import ( "database/sql" "flag" "fmt" "os" "reflect" "sync" "testing" "github.com/ToQoz/gopwt" "github.com/ToQoz/gopwt/assert" ) func TestMain(m *testing.M) { flag.Parse() gopwt.Empower() // magic happens os.Exit(m.Run()) } func TestWithMessage(t *testing.T) { var receiver *struct{} receiver = nil assert.OK(t, receiver != nil, "receiver should not be nil") } func TestWithTestingRun(t *
What's in a name? October 2014 Andrew Gerrand Google Inc. Names matter Readability is the defining quality of good code. Good names are critical to readability. This talk is about naming in Go. 2 Good names A good name is: Consistent (easy to guess), Short (easy to type), Accurate (easy to understand). 3 A rule of thumb The greater the distance between a name's declaration and its uses, the longer
åé¡ length := len(users) var names [length]string ã¨ãããããã© invalid array bound length ã¨å±ããã 解決 é åã«ã¯constantãã渡ããªããå¯å¤é·é åã«ã¯ã¹ã©ã¤ã¹ã使ã Google ã°ã«ã¼ã Goè¨èªã®ã¹ã©ã¤ã¹ãç解ããã length := len(users) names := make([]string, length) ãªãããåã« var names []string for _, user := range users { names = append(names, user.Name()) } // é ãã DRYãªåå¿é²
Good morning! Thank you for coming to my talk. Before I begin, I want to express my gratitude to tenntenn and the organisers of GoCon for inviting me to speak today. I also want to acknowledge the generous sponsorship of our hosts, Cyber Agent, for providing the venue for today. [ to audience ] would someone be kind enough to read this for me ? Do you know the english translation? A frog in a well
Writing High Performance Go GopherChina 17 April 2016 Dave Cheney Welcome æ¨å¥½! Thank you for coming to my talk. Thank you also to the GopherChina organisers for inviting me to speak. My name is David. I'm a Go programmer from Sydney, Australia. I'm a contributor to the Go project and I run the Sydney Go Users' group. 2 Agenda This talk is aimed at development teams who are building production Go ap
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? æ¬æ¥ãå¿ãã㦠Go è¨èªããã¾ã£ã¦ãããæããªãã®ã ãï¼ããã¯ãã¼ã¯ã°ã£ããæºã¾ã£ã¦ããã®ã§ï¼å®æçã«åãåºãã¦ããããªãï¼ Qiita ã§ã®ã¡ã³ããã³ã¹ã¯çµäºãããã¨ã«ããã以éã¯ä»¥ä¸ã®ãã¼ã¸ã§ã¡ã³ããã³ã¹ãã¦ããã Go è¨èªã«é¢ããããã¯ãã¼ã¯ - ããã°ã©ãã³ã°è¨èª Go | text.Baldanders.info å ¬å¼ãµã¤ã The Go Programming Language : 2017å¹´1æ26æ¥æç¹ã§ã®ææ°ã¯ 1.7.6 git repositories (Google) git repositories (Gi
Regular expressions are a notation for describing sets of character strings. When a particular string is in the set described by a regular expression, we often say that the regular expression matches the string. The simplest regular expression is a single literal character. Except for the metacharacters like *+?()|, characters match themselves. To match a metacharacter, escape it with a backslash:
ç§ã¯Goè¨èªãæ°ã«å ¥ã£ã¦ãã¾ãããå¤ãã®å ´é¢ã§ä½¿ç¨ãã¾ããç¾ã«ãã®ããã°ãGoã§æ¸ãã¦ãã¾ããGoã¯ä¾¿å©ãªè¨èªã§ãããåªããè¨èªã¨ã¯è¨ãã¾ãããã¤ã¾ããæªãã¯ãªãããã©ãååã§ã¯ãªãã¨ãããã¨ã§ãã æºè¶³ã§ããªãè¨èªã使ç¨ããéã¯æ³¨æãå¿ è¦ã§ãã注æãæ ãã¨ããã®è¨èªã次ã®20å¹´é使ãç¶ããç¾½ç®ã«ãªããããããªãããã§ãã ç§ã®Goã«å¯¾ãã主ãªä¸æºãæ¬æã«ã¾ã¨ãã¾ãããæ¢ã«ä½åº¦ãææããã¦ãããã¨ãå«ã¾ãã¦ãã¾ãããä¸ã«ã¯ããã¾ã§ã»ã¨ãã©è©±é¡ã«ãªã£ã¦ããªãææãããã¾ãã ããããåæããå ¨ã¦ã®èª²é¡ã«ã¯æ¢ã«è§£æ±ºçããããã¨ã示ããããç§ãåªè¯ãªè¨èªã¨èããRustãHaskellã¨æ¯è¼ãã¦èª¬æãã¾ãã æ±ç¨ããã°ã©ãã³ã° èª²é¡ èª°ã§ããã¾ãã¾ãªäºæã«å¹ åºã対å¿ã§ããã³ã¼ããè¨è¿°ãããã¨èãã¾ããä¾ãã°æ°ã®ãªã¹ãã®åè¨ãæ±ããããã«å®ç¾©ããé¢æ°ããå°æ°ãæ´æ°ãã¾ããã®ä»ã®åè¨ãæ±ãããããã®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}