I've been trying on and off to find a nice way to deal with setting options in a Go package I am writing. Options on a type, that is. The package is intricate and there will probably end up being dozens of options. There are many ways to do this kind of thing, but I wanted one that felt nice to use, didn't require too much API (or at least not too much for the user to absorb), and could grow as ne
We need to add package versioning to Go. More precisely, we need to add the concept of package versions to the working vocabulary of both Go developers and our tools, so that they can all be precise when talking to each other about exactly which program should be built, run, or analyzed. The go command needs to be able to tell developers exactly which versions of which packages are in a particular
Home Archive About GitHub Mastodon Subscribe to the feed. This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. This blog is served by Hugo. Wed, Dec 27, 2017 It is real struggle to work with a new language, especially if the type doesnât resemble what you have previously seen. I have been there with Go and lost my interest in the language when it first c
Gophercon2016ã§ã® francesc ã®ãã¼ã¯ãè¦ããGoã®nilã¨ã¯ä¸ä½ä½ãªã®ããã©ããã£ãã·ãã¥ã¨ã¼ã·ã§ã³ã§æ´»ç¨ã§ããã®ããã©ããã£ããããã©ãããããã®ãã¨ããnilã®ç解ãæ·±ãããã¨ãã§ããå 容ã ã£ãã nilã¨ã¯ä½ãï¼è¨èªã«ãã£ã¦null, nil, Noneçä¼¼ããããªãã®ãåå¨ãã¦ããããããããæå³ããã¨ããã¯ç°ãªã£ã¦ãããnullã¯ãä¸å®ãã ããnilã¯ãã¼ãããæãã I call it my billion-dollar mistake. It was the invention of the null reference in 1965. â Antony Hoare Goã®ç¥å ã§ãããCSPã®éçºè ããã¼ãã¼ã¢ã¯ãå®æã«nullãå°å ¥ããã®ã¯å¤±æã ã£ãã¨ããããGoã®nilã¯å¤±æã§ã¯ãªãã panic: runtime error: invalid m
The Upspin project uses a custom package, upspin.io/errors, to represent error conditions that arise inside the system. These errors satisfy the standard Go error interface, but are implemented using a custom type, upspin.io/errors.Error, that has properties that have proven valuable to the project. Here we will demonstrate how the package works and how it is used. The story holds lessons for the
æè¿ãgolang ã®ã¬ã¤ã¤æ§é ã«ããã¦ãä»ã®ã³ã¼ãã«å½±é¿ãªãã¤ã³ãã©ã¬ã¤ã¤ã®ãã¼ã¿ã½ã¼ã¹å®è£ ãå·®ãæ¿ãããã¨ã¯å¯è½ã? ã¨ãã質åãåããã åçæéãéããã¦ããä¸ã§è³ªåãåããã®ã§ã ãç¾å®çã«ã¯é£ãããã¨ããéãªåçããã§ããªãã£ãã ãããã«éããããªã¨æã£ãã®ã§ã èªåãªãã®åçãã¡ããã¨æ®ããã¨æãã å½±é¿ãåãã対象ã¨ãªãã³ã¼ãã¯? MySQL -> PostgresSQL ã¸ã®å·®ãæ¿ã MySQL -> WebAPI ã¸ã®å·®ãæ¿ã ã¤ã³ãã©ã¬ã¤ã¤ã«DBä¾åã®ã³ã¼ããã¾ãã£ã¨å®è£ ãã¦ãã¾ã DDDã®å ´å ç¬èªã®æ¥ç¶ãªãã¸ã§ã¯ããä½ã DDDæ¬ & IDDDæ¬ã®ãµã³ãã«ã¯ã©ããªã£ã¦ããã? å·®ãæ¿ããå¿ è¦ã¯ããã®ã? ã¾ã¨ã å½±é¿ãåãã対象ã¨ãªãã³ã¼ãã¯?golang ã®ã¬ã¤ã¤æ§é ã«ããã¦ãä»ã®ã³ã¼ãã«å½±é¿ãªãã¤ã³ãã©ã¬ã¤ã¤ã®ãã¼ã¿ã½ã¼ã¹å®è£ ãå·®ãæ¿ãããã¨ã¯å¯è½ã? ã¨ã
è¿å¹´ãæ°èè¨èªã¨ã¯æããªãç°¡æ½ããå®è¡æããã©ã¼ãã³ã¹ã®è¯ããªã©ããGoã注ç®ãéãã¦ãã¾ãããµã¤ãã¼ã¨ã¼ã¸ã§ã³ãã®ã¡ãã£ã¢ãã£ããããã¡ã³ãäºæ¥æ¬é¨ã§ãGoã®å°å ¥ãé²ãã¦ãããGoã¢ããªã±ã¼ã·ã§ã³ã®éçºãéãã¦ãã®å©ç¹ãæ¬ ç¹ãªã©ã身ãæã£ã¦å¦ã¶ãã¨ãã§ãã¾ããããã®è¨äºã§ã¯ãGoã¢ããªã±ã¼ã·ã§ã³ã®èªåååä½ãã¹ããè¡ãã«ããã£ã¦ããã¹ãã®å®æ½ã容æã«ããã«ã¯ã©ã®ãããªè¨è¨ãè¡ãã¹ããããä¾åæ§ã®åé¢ã¨ãã観ç¹ããç´¹ä»ãã¾ããä¾åæ§ã®åé¢ã¯ãåä½ãã¹ãã«ããã¦ç¢ºä¿ããªããã°ãªããªãè¦ç´ ã®ä¸ã¤ã§ããä¾åæ§ã®åé¢ãè¡ããã¨ã«ãã£ã¦ãä¸ã¤ã®ãã¹ãã§å®è¡ãããæ¬çªã³ã¼ãã®ç¯å²ãå¶éãããã¨ãã§ãããã¹ãã失æããã¨ãã®åå 究æã容æã«ãªãã¾ããã¾ãããã¹ãã®åç¾æ§ã®æ ä¿ã容æã«ãªãã¾ãã ã¯ããã« åãã¾ãã¦ãæ ªå¼ä¼ç¤¾ãµã¤ãã¼ã¨ã¼ã¸ã§ã³ã ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã®å¤§æ¾¤ç¿å¾ã¨ç³ãã¾ããç§ã®æå±ãã¦ã
Stupid Gopher Tricks GolangUK 21 August 2015 Andrew Gerrand Video A video of this talk was recorded at GolangUK in London. Watch the talk on YouTube 2 This talk This talk is about things you might not know about Go. Some of this stuff you can add to your Go vocabulary. Other things are probably best left for special occasions. 3 Language 4 Type literals (1/2) Here's a familiar type declaration: ty
Vendoring. Generics. These are seen as big issues in the Go community but thereâs another issue thatâs rarely mentioned â application package layout. Every Go application Iâve ever worked on appears to have a different answer to the question, how should I organize my code? Some applications push everything into one package while others group by type or module. Without a good strategy applied acros
devfest 2017 tokyo ã®çºè¡¨è³æã§ãã Goã®ãµã¼ããµã¤ãå®è£ ã«ãããã¬ã¤ã¤è¨è¨ã¨ã¬ã¤ã¤å å®è£ ã«ã¤ãã¦èãã from pospome å½æ¥ã¯å ¥å®¤ã§ããªã人ãããããã & æ©æãã©ãã«ã§10minã»ã©éå§ãé ãã¦ãã¾ã£ã ã¨ãããã¨ã§ç³ã訳ãªãæã£ã¦ãã¾ãã ã¾ããç«ã¡è¦ãã価å¤ãããå 容ãæä¾ã§ããã®ã ããã? ã¨ãæã£ã¦ãã¾ãã ã¹ã©ã¤ãã¯åä½ã§ãçºè¡¨å 容ãä¼ããããã«æç« ãå¤ãã«è¼ãã¦ããã®ã§ã æ¯é確èªãã¦ã¿ã¦ãã ããã 100ãã¼ã¸è¶ãã¦ãã¾ããã»ã»ã»ã #DevFest_room2 å ¥ããªãã£ãããâ t.junichi (@tjun1) 2017å¹´10æ9æ¥ ãã®ãããç«ã¡è¦äººæ° #Devfest17 #DevFest_room2â ããã«ããã°ã©ãã¼æ´ç°æºä¹@å°å¥³çµæ«æ è¡ (@tomoya_shibata) 2017å¹´10æ9æ¥ ã«ã¼ã 2ãããã並ã¶æ¹ã¯ã¾
The presentation slides on golang.tokyo#9 by @__timakin__
Drawing Copyright ©2017 Renee French This week marks the 10th anniversary of the creation of Go. The initial discussion was on the afternoon of Thursday, the 20th of September, 2007. That led to an organized meeting between Robert Griesemer, Rob Pike, and Ken Thompson at 2PM the next day in the conference room called Yaounde in Building 43 on Google's Mountain View campus. The name for the languag
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}