summaryrefslogtreecommitdiffhomepage
path: root/go.html.markdown
Commit message (Collapse)AuthorAgeLines
* Fix typo in Go commentAlexsander Akers2017-08-04-1/+1
|
* fix #2700ven2017-07-04-4/+4
|
* more clear explanation for interface (#2779)gondo2017-07-02-1/+1
| | | more clear explanation why interface is consider defined without specifically declaring it (like in other languages `pair implement Stringer`)
* [go] added practical examples for the underscore (#2414)Leonid Shevtsov2016-10-31-0/+14
| | | | | | | | | | * go: added practical examples for the underscore * Example of using underscore to discard the error * Example of using underscore to loop over values of a slice * Incidentally, example of writing to a file * go: Adjust justification for ignoring error value
* Updated closureCarl2016-06-04-1/+2
| | | Corrected closure example that referenced assigning x to e^10, which does not happen in this iteration. Set x to a value large enough to make the comments hold true.
* correct minor grammar and formatting to improve readabilityRobert Brown2015-10-24-1/+2
|
* Added Go Mobile informationRomin Irani2015-10-14-0/+2
|
* Added suggested changesClayton Walker2015-10-08-2/+2
|
* Added more to further readingClayton Walker2015-10-07-0/+2
|
* Minor Typos, increased readabilityClayton Walker2015-10-06-3/+4
|
* FallthroughSamuel Marks2015-04-23-0/+4
|
* Fixed grammar, added explanation of function signature and argumentsSamuel Marks2015-04-22-2/+6
|
* Add default case to switch statement in GoKev Choi2015-04-20-0/+2
|
* [go] Fix no new variables on left side of :=kb2014-09-22-2/+2
| | | | | | | | | | Cannot short declaration twice without at least one new var. Also changing type from string to slice. $ go run learnxiny.go # command-line-arguments ./learnxiny.go:83: no new variables on left side of := ./learnxiny.go:83: cannot use []int literal (type []int) as type string in assignment ./learnxiny.go:84: first argument to append must be slice; have string ./learnxiny.go:90: first argument to append must be slice; have string
* Fix "initialized" typo.Levi Bostian2014-09-05-1/+1
|
* Merge pull request #703 from jcbohin/go-en-confusing_array_initialization-#257Levi Bostian2014-09-05-1/+2
|\ | | | | [go/en] Array initialization disambiguation - fixes #257
| * Fixing missing space and dot.Jean-Christophe Bohin2014-08-07-1/+1
| |
| * Array initialization disambiguation - fixes #257Jean-Christophe Bohin2014-08-04-1/+2
| | | | | | simply added proposed comment, which seems fine
* | EDOUBLEDSPACENami-Doc2014-09-05-23/+23
| | | | | | My *fake* ocd kicked in
* | Minor language change fixing mixed use of array and slice, where only slice ↵Sam Zaydel2014-08-19-3/+3
| | | | | | | | is correct.
* | Fixed indentation error created in previous commit.Sam Zaydel2014-08-19-3/+3
| |
* | In golang slices are dynamic, so a mention of append() for slice updates ↵Sam Zaydel2014-08-19-0/+14
| | | | | | | | seems to be appropriate.
* | Corrected the statement that rune is an alias for uint32 to say int32James Baxter2014-08-19-1/+1
| |
* | Merge pull request #707 from jcbohin/patch-1Nami-Doc2014-08-08-0/+2
|\ \ | | | | | | [go/en] Adding Go playground link with code - fixes #318
| * | Adding a direct link to play.golang.orgJean-Christophe Bohin2014-08-07-1/+1
| | |
| * | Adding Go playground link with code - fixes #318Jean-Christophe Bohin2014-08-05-0/+2
| |/ | | | | Just removed networking code, since Go playground's sandbox prevent it to work.
* | Fixed styleJean-Christophe Bohin2014-08-07-2/+2
| | | | | | Didn't uppercased 'range' in the beginning of the sentence since it's a language keyword.
* | [go/en] add an example for range - fixes #351Jean-Christophe Bohin2014-08-04-0/+8
|/
* fix import of io/ioutil, run gofmtHey Alexej2014-07-16-224/+225
| | | | | | generated/downloaded file doesn't work with "go run". it's missing ioutil. ran gofmt which uses tabs (width=8) for formatting. longest line is 85 characters now. removed whitespace.
* Merge pull request #671 from szaydel/masterLevi Bostian2014-07-10-0/+10
|\ | | | | Function literals used inline in Go language
| * Forgot to add `=>` to comment line.Sam Zaydel2014-07-10-1/+1
| |
| * Small change to inline literal functions comments.Sam Zaydel2014-07-10-1/+2
| |
| * Go inline function literals as arguments to other functions or function ↵Sam Zaydel2014-07-09-0/+9
| | | | | | | | literals.
* | Remove duplication of function factory examplePete Hamilton2014-07-05-7/+0
| |
* | Merge pull request #663 from vvo/patch-2Levi Bostian2014-07-02-2/+16
|\ \ | | | | | | feat(webserver request): add a http.Get example
| * | feat(webserver request): add a http.Get exampleVincent Voyer2014-07-02-2/+16
| |/ | | | | | | | | | | 1. script now exits 2. we initiate a request to the started server to prove the serverHTTP works what do you think?
* / fix(go func factory): fix func factory exampleVincent Voyer2014-07-02-4/+14
|/ | | previous code did not run because outside main() code was done
* Learn function decorators with GoSam Zaydel2014-06-29-2/+17
| | | | | Added snippet about using closures as function decorators in Go. Also removed a few extra whitespaces.
* Hopefully slight language improvement over orig.Sam Zaydel2014-06-23-3/+3
|
* Slight language change per pull req. commentSam Zaydel2014-06-22-3/+3
|
* Fixed `on` to `in` in comment.Sam Zaydel2014-06-22-1/+1
|
* Should have more detail about named return values.Sam Zaydel2014-06-22-0/+10
| | | There was not a section about named return values, and it feels like it is a valuable and important enough thing to learn early on. If nothing else, when looking at someone else's code this may be a point of confusion.
* [go/en] add range index explication, and new learn sourceJose Donizetti2014-05-11-0/+3
|
* Fix Go tutorial, especially ru translationQumeric2014-04-16-9/+7
|
* added defer exampleQuint Guvernator2014-02-02-0/+13
| | | | | decided not to use file i/o as an example because external file access is rare in other tutorials.
* [go/en] Fix veriadic function bug; format and clarify comments.Jesse Johnson2014-01-30-71/+75
|
* - add variadic function exampleC. Bess2014-01-24-1/+15
|
* Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docsAdam2013-09-08-4/+5
|\
| * Added links to source and package documentation.Matthew Wyatt2013-09-04-4/+5
| | | | | | | | Also reformatted line lengths to accommdate links.
* | Some fixesAdam2013-09-08-1/+1
|/