IGDAæ¥æ¬ ã²ã¼ã ãµã¼ãåå¼·ä¼ #8 https://techplay.jp/event/666753 ç»å£ããè³æã®ãããªã¡ã¢
2017-09-28 thu. 第 1 å Google Cloud INSIDE Games & Apps æ ªå¼ä¼ç¤¾ãã³ãã¤ãã ã³ã¹ã¿ã¸ãª ã¨ã³ã¸ã㢠ä¿ç§ ä¸æ æ°ã®ç»å£ã¹ã©ã¤ãã§ããRead less
以ä¸ã®ãã¤ã¼ãã«ãããéããä¸è¦ golang 㯠struct ãå®ç¾©ããªã㨠JSON ãæ±ããªãããã«è¦ãã¾ããä»ã«ãä¼¼ããããªãã¤ã¼ãããã©ãã©ã¨è¦ããã¾ãããããããã¯å ¨é¨èª¤è§£ã§ããããã§ãã®è¨äºã§ã¯ãgolang ã§ãããµã (structãå®ç¾©ãã) ã« JSON ãæ±ãæ¹æ³ãç´¹ä»ãã¾ãã golangãrubyã®ããã«ãããµãã«JSONã¯æ±ããªã? https://t.co/olsryDHc5G â bamchoh (@bamchoh) 2016å¹´6æ24æ¥ ãã®è¨äºã§ã¯å ¥åã® json.Unmarshal() ãåãæ±ãã¾ãããåºåã® json.Marshal() ã«ãå¿ç¨ã§ãã¾ãã TL;DR json.Unmarshal() ã«ã¯ *interface{} ã渡ãã¾ã interface{} 㯠dproxy ã使ãã¨ãå¤ã®ã¢ã¯ã»ã¹ã§æ¥½ãã§ãã¾ã json.Unmar
è¨èªã¿ã°ã¯ä¸è¬çã«è¨èªã³ã¼ãï¼ä¸è¨ã§ã®âenâ, âcmnâ, âzhâ, ânlâ, âazâï¼ãæ¥ãå¾ã«ä»å çãªæåã«é¢ããå¯ã¿ã°ï¼â-Arabâï¼ã å°åã«é¢ããå¯ã¿ã°ï¼â-USâ, â-BEâ, â-419âï¼ãå¤æ°ã®å¯ã¿ã°ï¼ãªãã¯ã¹ãã©ã¼ãè±èªå¤§è¾å ¸ã§ã®ã¹ãã«ã®ããã® â-oxendictâï¼ãããã㯠æ¡å¼µå¯ã¿ã°ï¼é»è©±å¸³é ã®ããã® â-u-co-phonebkâï¼ãç¶ãã¾ãã ãã£ã¨ãä¸è¬çãªå½¢å¼ã¯å¯ã¿ã°ãçç¥ãããå½¢ããã¨ãã° âaz-Latn-AZâ ã§ããã° âazâ ã§ãã è¨èªã¿ã°ããã£ã¨ã使ãããå ´æã¯ãã·ã¹ãã ããµãã¼ããã¦ããè¨èªã®ä¸è¦§ããã¦ã¼ã¶ã¼ã好ã¿ã®è¨èªãé¸æããã¨ãã§ãããã ãã¨ãã°ãï¼ã¢ããªã«ã¼ã³ã¹èªãé¸æã§ããªãå ´åã«ï¼ã¢ããªã«ã¼ã³ã¹èªãæãã§ããã¦ã¼ã¶ã¼ã«å¯¾ãã·ã¹ãã ã¯ãªã©ã³ãèªã表示ããã¨ãã決å®ãããå ´åã§ãã ãã®ãããªå¯¾å¿ã¯è¨èªéã®å å«æ§
Goè¨èªã®éçºããããã¨ãã¦è²ã 調ã¹ããã ãã©çµæ§å¤§å¤ã ã£ãã®ã§ã¾ã¨ãã åºæ¬çã«Macã§ã®ä½æ¥ãåæã¨ãã¦ãã¾ãã Goã®ã¤ã³ã¹ãã¼ã« MacãªãHomebrewã§ä¸çºã $ brew install go GOPATHç°å¢å¤æ°ï¼ Goã§ã¯ãGOPATHã¨ããç°å¢å¤æ°ãè¨å®ããã¨ããããä½æ¥ã¹ãã¼ã¹ã¨ãªãã¾ãã ã²ã¨ã¾ãã©ãã§ã好ããªå ´æãGOPATHã«è¨å®ãã¾ãããã ã¾ãã$GOPATH/binãPATHã«éãã¦ããã¾ãã $ export GOPATH=$HOME/go $ export PATH=$PATH:$GOPATH/bin åæ§ã®å 容ã.bashrcãªã©ã«ãå ¥ãã¦ããã¾ãã ããã¨ã $ go get [package name] ã¨ãããã¨ã§ãimportã§ããããã±ã¼ã¸ãèªåçã«ãã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«ããã¨ãã便å©ãªä»çµã¿ãããã¾ãã ä¾ãã°ãrevelã¨ããW
西澤ã§ãã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
Instantly convert curl commands to Go code This tool turns a curl command into Go code. (To do the reverse, check out moul/http2curl.) Currently, it knows the following options: -d/--data, -H/--header, -I/--head, -u/--user, --url, and -X/--request. It also understands JSON content types (see JSON-to-Go). If the content type is application/x-www-form-urlencoded then it will convert the data to Valu
PFNã®æåã§ããGoè¨èªè£½ã®ã½ããã¦ã§ã¢ã®CI(Continuous Integration, ç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³)ç°å¢ã®æ§ç¯æ¹æ³ï¼å°å ¥æ¹æ³ï¼ã«ã¤ãã¦è§£èª¬ãã¾ããæ³å®ã¨ãã¦ã¯githubä¸ã«ãã¹ããã¦ããOSSããã¸ã§ã¯ãã®ã½ã¼ã¹ããªã¼ãCIã®å¯¾è±¡ã¨ãã¾ããOSSã®publicãªãã¸ããªãªãããç¡æã§ä½¿ãããµã¼ãã¹ãå©ç¨å¯¾è±¡ã¨ãã¾ãã ç´¹ä»ããåCIãµã¼ãã¹ãã¹ã¦ã§Goè¨èªãæ±ãã¾ãããã¾ãæåã«ãµã¼ãã¹ãå©ç¨ããä¸ã§åãµã¼ãã¹ã«ã¤ãã¦çµè«ããè¿°ã¹ã¾ãããã®å¾ãåCIç°å¢ï¼OSãGoãã¼ã¸ã§ã³ï¼ãè¨å®ãã¡ã¤ã«ã®ä¾ã説æãã¾ãã ä»åã¯Travis CIãCircleCIãCodeshipãAppVeyor ã®4ã¤ã®ãµã¼ãã¹ãç´¹ä»ãã¾ãã çµè«ãã çµè«ããæ¸ãã¾ãã¨ãLinux, OS X, Windowsã®å種OSãã©ãããã©ã¼ã ã§åæã«CIãåãããããªããTravis CI(
Echo is a fast HTTP router (zero memory allocation) + micro web framework in Go. Features Zippy router. Extensible middleware/handler, supports: Middleware func(*echo.Context) func(echo.HandlerFunc) echo.HandlerFunc func(http.Handler) http.Handler http.Handler http.HandlerFunc func(http.ResponseWriter, *http.Request) Handler func(*echo.Context) http.Handler http.HandlerFunc func(http.ResponseWrite
ã¿ã¤ãã«ã®éãã§ããGo 㯠LL çã«ä½¿ãããã¨ã¯ããç³ãã¾ãããããããæèã§ä½¿ã£ã¦ãã㨠REPL çãªãã¨ããããã¨ãã«å°ããã¡ã§ããããããã§ä½ãã¾ãããgoreãããååã§ããã motemen/gore · GitHub 以ä¸ã®ã¹ã¯ãªã¼ã³ãã£ã¹ãã§ã ãããã®é°å²æ°ããå¯ãä¸ããã ï¼ã¹ã¯ãªã¼ã³ãã£ã¹ã㯠cho45/KeyCast ã使ã£ã¦æ®å½±ãã¾ããï¼ ç¹å¾´ gore ã®ç¹å¾´ã¯ä»¥ä¸ã®éãã§ãã ã©ã¤ã³ã¨ãã£ã¿ã¨å±¥æ´ è¤æ°è¡å ¥å ããã±ã¼ã¸ã®ã¤ã³ãã¼ããè£å®ã¤ã å¼ããã³æãå®è¡å¯è½ ã³ã¼ãè£å®ï¼nsf/gocode ãå©ç¨ï¼ ããªãã£ããªã³ãï¼k0kubun/pp ã davecgh/go-spew ãããããï¼ ããã¥ã¡ã³ããå¼ããï¼godoc ãå¿ è¦ï¼ 以ä¸ã®ããã«ãé常ã«ä¾¿å©ãªãã®ã«ãªã£ã¦ããã¾ããããããã®ç¨åº¦ REPL ã«ã¯å½ç¶ãã£ã¦ã»ããæ©è½ã ã¨ãè¨ããã ã¤ã³
ãã¡ãã§ããPerl ã§ãã㨠Devel::KYTProf ã«æ§è³ªãã¡ããã motemen/go-loghttp · GitHub (GoDoc) 使ç¨ä¾ ãã¨ãã°ããããã³ã¼ãã«â¦ package main import ( "io" "log" "net/http" "os" ) func main() { resp, err := http.Get(os.Args[1]) if err != nil { log.Fatal(err) } io.Copy(os.Stdout, resp.Body) } % go run main.go http://example.com/ <!doctype html> ... ä¸è¡è¿½å ããã¨: package main import ( "io" "log" "net/http" "os" _ "github.com/motemen/go-lo
2014-10-21 使ããªããæãªGoè¨èªã®ä¾¿å©ãã¼ã«ï¼ç¨® Go æ¨æºãã¼ã«ã ãã§ååéçºã§ããGoã§ããããµã¼ããã¼ãã£ã«ã便å©ãªãã®ãããã¾ãã 1. go.tools å ¬å¼ãµã¤ããæä¾ãã¦ãããã©ãgoã³ãã³ãã«ã¯å«ã¾ããªãããæºæ¨æºãã®ãããªãã¼ã«é¡ã§ãã ããããããè¦ãã¨ãhttp://godoc.org/code.google.com/p/go.tools/presentï¼ãã¬ã¼ã³ä½æãã¼ã«ï¼ãã goimportsï¼importãèªåè£å®ããgo fmtï¼ã®ãããªã便å©ï¼ãããããªãï¼ãã¼ã«ãããã®ã§ãæã è¦ãã¦ã¿ã¾ãããã 2. gox / goxc ãªãå¤ãã®äººãGoã«éæ¿ããã¦ãããï¼ããã¯ããã¤ããªãä½ããããããããããã¯ãã¹ã³ã³ãã¤ã«ãå¯è½ãã ããã direnvãpecoã¯å®éã«ãgithubã®ãªãªã¼ã¹ãã¼ã¸ã§Windows/Linux/Macç¨ã®ãã¤ããªã
Hot Code Reload Edit, save, and refresh. Revel compiles your code and templates for you, so you don't miss a beat. Code doesn't compile? It gives you a helpful description. Run-time code panic? Revel has you covered. Flow Control Revel is built around composable middleware called filters, which implement nearly all request-processing functionality. Developers have the freedom to replace the defaul
Goè¨èªãä¸æ³ã«ãªã£ããããã®ã§è¨å¿µã«ã¡ãã£ã¨è¨³ãã¦ã¿ããããã¨ã¨ãµã²ãªè¨èªã«ãªã£ã¦ãã¨æãã§ããã http://blog.golang.org/2010/11/go-one-year-ago-today.html Go: ä¸å¹´åã®ä»æ¥ 2009å¹´11æ10æ¥ãç§ãã¡ã¯Goããã¸ã§ã¯ãï¼åç´ãã¨å¹çã«ç¦ç¹ãå½ã¦ããªã¼ãã³ã½ã¼ã¹ã®ããã°ã©ãã³ã°è¨èªï¼ãéå§ãã¾ããããã®ä¸å¹´éã§Goããã¸ã§ã¯ãèªèº«ã¨ãã®ã³ãã¥ããã£ã®ä¸¡æ¹ã«å¤ãã®çºå±ãè¦ããã¾ããã ç§ãã¡ã¯å½åã·ã¹ãã ããã°ã©ãã³ã°ãå ¸åçã«ã¯CãC++ã§æ¸ããããããªé¡ã®ããã°ã©ã ãã®ããã®è¨èªãä½æãããã¨ãç®æãã¦ãã¾ããããé©ãããã¨ã«Goã¯æ±ç¨çãªç®çã«ä½¿ç¨ã§ããè¨èªã«ãªãã¾ãããCãC++ãJavaãªã©ã®ããã°ã©ãã®èå³ã¯å¾ãããã ããã¨ã¯æã£ã¦ãã¾ããããPythonãJavaScriptã®ãããªåçåè¨èªã®ã¦ã¼ã¶ã¼ãããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}