summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2014-05-11 23:39:08 -0500
committerLevi Bostian <levi.bostian@gmail.com>2014-05-11 23:39:08 -0500
commitda60869d3d5bb4e98205c4c1886ec24bd3679ae9 (patch)
treed54fe96e8f46e1ef2d30fcee099c0e3e11197a8d
parent58a5885da076edeccba8a0bfcefc049cdf03f4af (diff)
parent163d97c162aaaa58ef8620e8c47584baba50ebe0 (diff)
Merge pull request #606 from josedonizetti/golang_en
[go/en] add range index explication, and new learn source
-rw-r--r--go.html.markdown3
1 files changed, 3 insertions, 0 deletions
diff --git a/go.html.markdown b/go.html.markdown
index fa4c8d0b..bb6b04eb 100644
--- a/go.html.markdown
+++ b/go.html.markdown
@@ -8,6 +8,7 @@ contributors:
- ["Christopher Bess", "https://github.com/cbess"]
- ["Jesse Johnson", "https://github.com/holocronweaver"]
- ["Quint Guvernator", "https://github.com/qguv"]
+ - ["Jose Donizetti", "https://github.com/josedonizetti"]
---
Go was created out of the need to get work done. It's not the latest trend
@@ -232,6 +233,7 @@ func learnInterfaces() {
// Functions can have variadic parameters.
func learnVariadicParams(myStrings ...interface{}) {
// Iterate each value of the variadic.
+ // The underbar here is ignoring the index argument of the array.
for _, param := range myStrings {
fmt.Println("param:", param)
}
@@ -329,3 +331,4 @@ demonstrates the best of readable and understandable Go, Go style, and Go
idioms. Or you can click on a function name in [the
documentation](http://golang.org/pkg/) and the source code comes up!
+Another great resource to learn Go is [Go by example](https://gobyexample.com/).