Commit Graph

73 Commits

Author SHA1 Message Date
Ben Davis
09f41ab74c
Fix typo in build tag description 2020-12-03 13:16:43 -07:00
John Arundel
2643d9f2f0
Remove links/source mention 2020-02-27 11:50:39 +00:00
John Arundel
32f3ec1880
Update go.html.markdown
Remove link in body
2020-02-26 15:23:37 +00:00
John Arundel
e3c1b63e55
Fix playlist link 2020-02-25 18:16:47 +00:00
John Arundel
131d536f40
Add Golang University playlist links 2020-02-23 12:44:28 +00:00
Divay Prakash
e24cad5eef Merge pull request #3849 from petrroll/patch-2
[go/en] Add value/reference semantics information for arr/slices.
2020-02-09 22:18:18 +05:30
Petr Houška
cd631729a8 [go/en] Add value/reference semantics information for arr/slices. 2020-02-08 23:11:33 +01:00
Petr Houška
3869472f74 [go/en] Clarify safety of local variable address taking. 2020-02-08 22:57:43 +01:00
Michael Graf
a7242df7d7 go/en: add type switch and multiple cases 2020-01-30 15:35:19 -08:00
Flo
18b7969726 add go build tags 2019-10-22 23:11:23 +01:00
Divay Prakash
ff06f9cf99 Fix defer wording, closes #2673 2018-10-09 22:59:19 +05:30
i
a78942e8f3
clear up wording 2018-07-06 11:41:46 -04:00
Ilya
c90ee7202e
[go/en] Small typo
Small typo in command line commad
2018-02-15 10:57:27 +07:00
Alexsander Akers
cf976f3fa7 Fix typo in Go comment 2017-08-04 15:40:52 +02:00
ven
88e1938994 fix #2700 2017-07-04 13:34:50 +02:00
gondo
801484a23b more clear explanation for interface (#2779)
more clear explanation why interface is consider defined without specifically declaring it (like in other languages `pair implement Stringer`)
2017-07-02 14:38:55 +02:00
Leonid Shevtsov
5f9d8fe4e0 [go] added practical examples for the underscore (#2414)
* 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
2016-10-31 18:08:32 +01:00
Carl
427f87c655 Updated closure
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.
2016-06-04 00:26:18 -07:00
Robert Brown
4de15e41b3 correct minor grammar and formatting to improve readability 2015-10-24 13:56:20 +01:00
Romin Irani
da556f64f9 Added Go Mobile information 2015-10-14 12:03:05 +05:30
Clayton Walker
bc065831ce Added suggested changes 2015-10-08 23:24:25 -04:00
Clayton Walker
56ec0882a4 Added more to further reading 2015-10-07 00:07:00 -04:00
Clayton Walker
6a2fe434b8 Minor Typos, increased readability 2015-10-06 23:56:55 -04:00
Samuel Marks
1faab2901e Fallthrough 2015-04-23 00:02:33 +10:00
Samuel Marks
3bf74b3dda Fixed grammar, added explanation of function signature and arguments 2015-04-22 23:54:16 +10:00
Kev Choi
f63032d2f2 Add default case to switch statement in Go 2015-04-20 23:26:38 -07:00
kb
5e5a7a19fe [go] Fix no new variables on left side of :=
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
2014-09-22 12:11:49 +00:00
Levi Bostian
291f6f6b22 Fix "initialized" typo. 2014-09-05 21:02:38 -05:00
Levi Bostian
1fb4886020 Merge pull request #703 from jcbohin/go-en-confusing_array_initialization-#257
[go/en] Array initialization disambiguation - fixes #257
2014-09-05 21:01:38 -05:00
Nami-Doc
0846eaa0e7 EDOUBLEDSPACE
My *fake* ocd kicked in
2014-09-05 15:05:13 +02:00
Sam Zaydel
161e19baa9 Minor language change fixing mixed use of array and slice, where only slice is correct. 2014-08-19 20:43:42 -07:00
Sam Zaydel
7000db24e0 Fixed indentation error created in previous commit. 2014-08-19 20:43:42 -07:00
Sam Zaydel
a7a8c85257 In golang slices are dynamic, so a mention of append() for slice updates seems to be appropriate. 2014-08-19 20:43:42 -07:00
James Baxter
d7ead48d1f Corrected the statement that rune is an alias for uint32 to say int32 2014-08-19 12:06:02 +01:00
Nami-Doc
e1982bf586 Merge pull request #707 from jcbohin/patch-1
[go/en] Adding Go playground link with code - fixes #318
2014-08-08 10:50:01 +02:00
Jean-Christophe Bohin
26166afc65 Fixed style
Didn't uppercased 'range' in the beginning of the sentence since it's a language keyword.
2014-08-07 22:43:59 +02:00
Jean-Christophe Bohin
c0d49cdb88 Fixing missing space and dot. 2014-08-07 22:37:52 +02:00
Jean-Christophe Bohin
a4b4a7927f Adding a direct link to play.golang.org 2014-08-07 22:31:20 +02:00
Jean-Christophe Bohin
2ffd792932 Adding Go playground link with code - fixes #318
Just removed networking code, since Go playground's sandbox prevent it to work.
2014-08-05 09:03:21 +02:00
Jean-Christophe Bohin
0078b03707 Array initialization disambiguation - fixes #257
simply added proposed comment, which seems fine
2014-08-04 22:38:53 +02:00
Jean-Christophe Bohin
cfa26f23fd [go/en] add an example for range - fixes #351 2014-08-04 22:23:24 +02:00
Hey Alexej
c022e2e857 fix import of io/ioutil, run gofmt
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.
2014-07-16 05:28:50 +07:00
Levi Bostian
36dae81010 Merge pull request #671 from szaydel/master
Function literals used inline in Go language
2014-07-10 23:42:41 -05:00
Sam Zaydel
7cddab2925 Forgot to add => to comment line. 2014-07-10 09:25:48 -07:00
Sam Zaydel
174f0baa14 Small change to inline literal functions comments. 2014-07-10 09:22:47 -07:00
Sam Zaydel
55e1c2adaf Go inline function literals as arguments to other functions or function literals. 2014-07-09 20:56:01 -07:00
Pete Hamilton
4c34096703 Remove duplication of function factory example 2014-07-05 12:03:09 +01:00
Levi Bostian
09459a25fe Merge pull request #663 from vvo/patch-2
feat(webserver request): add a http.Get example
2014-07-02 08:57:54 -05:00
Vincent Voyer
f2e3d99476 feat(webserver request): add a http.Get example
1. script now exits
2. we initiate a request to the started server to prove the serverHTTP works

what do you think?
2014-07-02 14:55:33 +02:00
Vincent Voyer
74c0a49e6d fix(go func factory): fix func factory example
previous code did not run because outside main() code was done
2014-07-02 14:37:15 +02:00