-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3-functions-in-go.slide
79 lines (42 loc) · 1.65 KB
/
3-functions-in-go.slide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Welcome To Golang and Let's GO
GO Tutorial - Functions in Go
01:12 1 Dec 2019
[[https://www.milovantomasevic.com][Milovan Tomašević]]
[[https://www.milovantomasevic.com/courses/#table-of-contents][Go Tutorial]]
* Let's Go!
- declaring functions
- functions with arguments
- returning values functions
- implicit return value
- returning multiple values
- variadic functions
.image golang-lets-go/assets/go_jumping.gif
* declaring functions
.play golang-lets-go/3-functions-in-go/1-declaring-functions.go
.image golang-lets-go/assets/Golang.png
* functions with arguments
.play golang-lets-go/3-functions-in-go/2-functions-with-arguments.go
.image golang-lets-go/assets/gogo.png
* returning values functions
.play golang-lets-go/3-functions-in-go/3-returning-values-functions.go
.image golang-lets-go/assets/go-performance.png
* implicit return value
.play golang-lets-go/3-functions-in-go/4-implicit-return-value.go
.image golang-lets-go/assets/ggo.jpg
* returning multiple values
.play golang-lets-go/3-functions-in-go/5-returning-multiple-values.go
.image golang-lets-go/assets/golang-logo.png
* variadic functions
.play golang-lets-go/3-functions-in-go/6-variadic-functions.go
.image golang-lets-go/assets/gozv.png
* Try it!
References, articles, tutorials, links, and more:
- [[https://golang.org/doc/][Go Documentation]]
- [[https://tour.golang.org/][A Tour of Go]]
- [[https://golang.org/doc/code.html][How to Write Go Code]]
- [[https://github.com/golang/go/wiki][The Go Wiki]]
- [[https://golang.org/doc/effective_go.html][Effective Go]]
- ...
.image golang-lets-go/assets/work.gif
* Thanks! Q&A?
.image golang-lets-go/assets/mascot.gif