-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathadd.go
More file actions
28 lines (25 loc) · 750 Bytes
/
add.go
File metadata and controls
28 lines (25 loc) · 750 Bytes
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
// Seriál "Programovací jazyk Go"
// https://www.root.cz/serialy/programovaci-jazyk-go/
//
// Sedmnáctá část
// Testování aplikací naprogramovaných v jazyce Go
// https://www.root.cz/clanky/testovani-aplikaci-naprogramovanych-v-jazyce-go/
//
// Repositář:
// https://github.com/tisnik/go-root/
//
// Seznam demonstračních příkladů ze sedmnácté části:
// https://github.com/tisnik/go-root/blob/master/article_17/README.md
//
// Demonstrační příklad číslo 7:
// Testovaný balíček.
//
// Dokumentace ve stylu "literate programming":
// https://tisnik.github.io/go-root/article_17/test07/add.html
package main
func add(x int32, y int32) int32 {
return x + y
}
func main() {
println(add(1, 2))
}