- ã¯ããã«
- 6æ¥ç®
- 7æ¥ç®ï¼GoãGoã§Go!ããªã³ã»ã¹ããªãã¥ã¢ãä½ã£ã
- ã¹ã©ã¤ãæ¿
- ã¨ã³ããªçï¼å
容ã¯ã¹ã©ã¤ãã¨å
¨ãåãã§ãï¼
- GoãGoã§Go!ããªã³ã»ã¹ããªãã¥ã¢ãä½ã£ã
- èªå·±ç´¹ä»
- ãä»æã®å«ããã¥ã¢ãã¥ã¤ã³ã¯ã«
- ãæ¬å¦»ããã¥ã¢ãã¼ã¹
- Agenda
- ãGo!ããªã³ã»ã¹ããªãã¥ã¢ãã¨ã¯
- GoPrecureã¨ã¯
- 使ãæ¹
- è¦å´ãããã¨
- ããªãã¥ã¢ã®ä»è¨èªã§ã®å®è£ ã®ç´¹ä»
- rubicureã¨GoPrecureã®è¨è¨ææ³ã®éã
- ã¾ã¨ã
- è£è¶³
- 8æ¥ç®
ã¯ããã«
ããã¯ãããªãã¥ã¢ Advent Calendar 2015ãã®7æ¥ç®ã§ã
6æ¥ç®
@deroter ããã® ããã¡ããã¨ããç¹ç°ç¹çãªåå¨ã«ã¤ãã¦ã®èå¯ ã§ãã
7æ¥ç®ï¼GoãGoã§Go!ããªã³ã»ã¹ããªãã¥ã¢ãä½ã£ã
æ¨æ¥éå¬ããããGo Conference 2015 Winterãã§LTãããã®ã§ãã®çºè¡¨è³æã«ãªãã¾ãããæ»åãã ãã
ã¹ã©ã¤ãæ¿
GoがGoでGo!プリンセスプリキュアを作った #gocon #cure_advent
ã¨ã³ããªçï¼å 容ã¯ã¹ã©ã¤ãã¨å ¨ãåãã§ãï¼
GoãGoã§Go!ããªã³ã»ã¹ããªãã¥ã¢ãä½ã£ã
Go Sueyoshi a.k.a sue445
2015/12/06 Go Conference 2015 Winter
ï¼å ¼ ããªãã¥ã¢AdventCalendar 7æ¥ç®ï¼
èªå·±ç´¹ä»
- Go Sueyoshi a.k.a @sue445
- Railsã®ä¼ç¤¾ã§ãµã¼ããµã¤ãå
¨è¬ãæµ
ãåºãè¦å®ããä»äº
- ã¤ã³ãã©ãã¢ããªãã©ã¤ãã©ãªã社å ãã¼ã«etc
- ä¼ç¤¾ã§ã¯ããªãã¥ã¢ããããã¨å¼ã°ãã¦ãã¾ã
ãä»æã®å«ããã¥ã¢ãã¥ã¤ã³ã¯ã«
ãæ¬å¦»ããã¥ã¢ãã¼ã¹
Agenda
- ãGo!ããªã³ã»ã¹ããªãã¥ã¢ãã¨ã¯ï¼
- GoPrecureã¨ã¯
- 使ãæ¹
- è¦å´ãããã¨
- ä»è¨èªã§ã®ããªãã¥ã¢å®è£ ã®ç´¹ä»
ãGo!ããªã³ã»ã¹ããªãã¥ã¢ãã¨ã¯
æ¥ææ8:30ãããã¬ãææ¥ç³»ã§æ¾æ ãã¦ããã¢ãã¡
GoPrecureã¨ã¯
ãGo!ããªã³ã»ã¹ããªãã¥ã¢ãã®golangå®è£ ã§ã
https://github.com/sue445/goprecure
使ãæ¹
go getãã¦import
go get github.com/sue445/goprecure
import github.com/sue445/goprecure
ããªãã¥ã¢ã®ã¤ã³ã¹ã¿ã³ã¹ãä½æ
// ãã¥ã¢ããã¼ã© flora := goprecure.NewCureFlora() // ãã¥ã¢ãã¼ã¡ã¤ã mermaid := goprecure.NewCureMermaid() // ãã¥ã¢ãã¥ã¤ã³ã¯ã« twinkle := goprecure.NewCureTwinkle() // ãã¥ã¢ã¹ã«ã¼ã¬ãã scarlett := goprecure.NewCureScarlett()
Name ã§ååãåå¾
flora := goprecure.NewCureFlora()
flora.Name()
// æ¥éã¯ãã
Transform ã§å¤èº«
flora.Name() // æ¥éã¯ãã flora.Transform() flora.Name() // ãã¥ã¢ããã¼ã©
å®éã«ã¯ãããªæã
GoPrecureã§ã¯ãã©ã¼ã ãã§ã³ã¸ãå¿ å®ã«åç¾
åããªãã¥ã¢ã«å¯¾å¿ãããã¬ã¹ã¢ãããã¼
// ãã¥ã¢ããã¼ã© g.DressupKeys = []DressupKey{Flora, Rose, Lily, Sakura, Royal} // ãã¥ã¢ãã¼ã¡ã¤ã g.DressupKeys = []DressupKey{Mermaid, Ice, Bobble, Sango, Royal} // ãã¥ã¢ãã¥ã¤ã³ã¯ã« g.DressupKeys = []DressupKey{Twinkle, Luna, ShootingStar, Ginga, Royal} // ãã¥ã¢ã¹ã«ã¼ã¬ãã g.DressupKeys = []DressupKey{Scarlett, Hanabi, Phoenix, Sun, Royal}
è¦å´ãããã¨
- GoPrecureã«é©ããREPLããªã
- 4ã5種é¡ããã使ã£ã¦ç·åçã« gore ãä¸çªããã£ãããç´åã¾ã§ã®å ¥åãå ¨é¨å®è¡ãã¦ããã®ã§æ¨æºåºåã«åºåããã¡ã½ããã¨ã®ç¸æ§ãæªã
ä¾
Transform
ã®å¾ã« Exchange
ãã㨠Exchange
ã®æ¨æºåºåã ãåºãã¦ã»ããã®ã«ç´åã® Transform
ã®ãä¸ç·ã«åºãã®ã§éªé
golangã®REPLãã¾ã GoPrecureã«è¿½ãã¤ãã¦ããªãæãããï½
ããªãã¥ã¢ã®ä»è¨èªã§ã®å®è£ ã®ç´¹ä»
- Ruby: rubicure (@sue445)
- GitHubã®starãå¤ããããããããããã¶ãä¸çªæå
- Perl: Acme::PrettyCure (@kan)
- Python: pycure (@drillbits)
- Groovy: groovycure (@ligun)
- clojure: clocure (@kaosf)
rubicureã¨GoPrecureã®è¨è¨ææ³ã®éã
rubicureã®è¨è¨ææ³
- Rubyã®æè»æ§ãå©ç¨ãã¦ã¡ã¿ããã大活ç¨
- ã¯ã©ã¹ã«ã¡ã½ããã¯ã»ã¨ãã©å®ç¾©ããã«
method_missing
ã§ymlã«é£ã°ãã¨ã
- ã¯ã©ã¹ã«ã¡ã½ããã¯ã»ã¨ãã©å®ç¾©ããã«
transform!
ï¼å¤èº«ï¼ ãattack!
ï¼å¿ 殺æï¼ ãªã©ç ´å£çã¡ã½ããã«ã¯!
ãã¤ããRubyã®æ £ç¿ã«åã£ã- åºæ¬çã«ããªãã¥ã¢å ¨å¡å¯¾å¿ããããç¹å®ã®ã·ãªã¼ãºã«ç¹åãããªãæ±ç¨çãªè¨è¨
- rubicureã®ãããã§Rubyã®åå¼·ã«ãªã£ã
GoPrecureã®è¨è¨ææ³
- éçåä»ããæèããè¨è¨
DresupKey
ã¨ããåãconst
ã§å®ç¾©ãããã¨ã«ããExchange
ã«æªç¥ã®ãã¬ã¹ã¢ãããã¼ãå¼æ°ãããããªãããã«ããï¼ã³ã³ãã¤ã«ã¨ã©ã¼ã«ãªãï¼
- Go!ããªã³ã»ã¹ããªãã¥ã¢ã ãã«ç¹åããããã¨ã§ãã¬ã¹ã¢ãããã¼ã¨ã¢ã¼ããã§ã³ã¸ãé¢é£ä»ããå®è£ ãå®ç¾ãã
- GoPrecureã®ãããã§golangã®åå¼·ã«ãªã£ã
ã¾ã¨ã
æ°ããè¨èªãåå¼·ããæã¯èªåã®å¥½ããªãã®ãå®è£ ããã¨è¯ãã
è£è¶³
ããªãã¥ã¢ã®Rubyå®è£
ãã¡ãã御覧ãã ãã
Go!ããªã³ã»ã¹ããªãã¥ã¢ã¯ï¼ä»ã®ã¨ããï¼43話é£ç¶ç¥å
ãªã®ã§ã¿ããªBDè²·ãã¨ããã¨æãã¾ã
- åºç社/ã¡ã¼ã«ã¼: ããã¼ãã£ããªã³
- çºå£²æ¥: 2015/10/21
- ã¡ãã£ã¢: Blu-ray
- ãã®ååãå«ãããã°ãè¦ã
- åºç社/ã¡ã¼ã«ã¼: ããã¼ãã£ããªã³
- çºå£²æ¥: 2016/01/20
- ã¡ãã£ã¢: Blu-ray
- ãã®ååãå«ãããã°ãè¦ã
- åºç社/ã¡ã¼ã«ã¼: ããã¼ãã£ããªã³
- çºå£²æ¥: 2016/03/16
- ã¡ãã£ã¢: Blu-ray
- ãã®ååãå«ãããã°ãè¦ã
- åºç社/ã¡ã¼ã«ã¼: ããã¼ãã£ããªã³
- çºå£²æ¥: 2016/04/20
- ã¡ãã£ã¢: Blu-ray
- ãã®ååãå«ãããã°ãè¦ã
8æ¥ç®
id:hyaknihyak ããã® ããªãã¥ã¢æ¾éä¸ã«ä»èª°ãæ´»èºãã¦ããããããã¤ä½ããã¨ãã ã§ã