.. | ||
1-hello-world.go | ||
2-values.go | ||
3-variables.go | ||
4-constants.go | ||
5-for.go | ||
6-if-else.go | ||
7-switch.go | ||
8-arrays.go | ||
9-slices.go | ||
10-maps.go | ||
11-range.go | ||
12-function.go | ||
13-muliple-return-value.go | ||
14-variadic-function.go | ||
15-closures.go | ||
16-recursion.go | ||
17-pointers.go | ||
18-structs.go | ||
19-methods.go | ||
20-interfaces.go | ||
readme.md |
Go by example
Go has different learning paths of which one is Go by example.
Here are all files with notations and more.
How to use the files:
# compile and run in the folder
go run <filename>.go
# build binary from file; after that run binary
go build <filename>.go
./<filename>
The code and structure is work of Mark McGranaghan and licensed under a Creative Commons Attribution 3.0 Unported License. The Go Gopher is copyright Renée French. The original repository can be found on Github