go_playground/5-go-by-example
2022-01-01 19:47:24 +01:00
..
1-hello-world.go starting go by example 2021-12-31 15:36:34 +01:00
2-values.go starting go by example 2021-12-31 15:36:34 +01:00
3-variables.go starting go by example 2021-12-31 15:36:34 +01:00
4-constants.go starting go by example 2021-12-31 15:36:34 +01:00
5-for.go starting go by example 2021-12-31 15:36:34 +01:00
6-if-else.go starting go by example 2021-12-31 15:36:34 +01:00
7-switch.go starting go by example 2021-12-31 15:36:34 +01:00
8-arrays.go starting go by example 2021-12-31 15:36:34 +01:00
9-slices.go starting go by example 2021-12-31 15:36:34 +01:00
10-maps.go starting go by example 2021-12-31 15:36:34 +01:00
11-range.go go by example part 2 2022-01-01 19:47:24 +01:00
12-function.go go by example part 2 2022-01-01 19:47:24 +01:00
13-muliple-return-value.go go by example part 2 2022-01-01 19:47:24 +01:00
14-variadic-function.go go by example part 2 2022-01-01 19:47:24 +01:00
15-closures.go go by example part 2 2022-01-01 19:47:24 +01:00
16-recursion.go go by example part 2 2022-01-01 19:47:24 +01:00
17-pointers.go go by example part 2 2022-01-01 19:47:24 +01:00
18-structs.go go by example part 2 2022-01-01 19:47:24 +01:00
19-methods.go go by example part 2 2022-01-01 19:47:24 +01:00
20-interfaces.go go by example part 2 2022-01-01 19:47:24 +01:00
readme.md starting go by example 2021-12-31 15:36:34 +01:00

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