-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.go
41 lines (30 loc) · 820 Bytes
/
main.go
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
package main
import (
"fmt"
"goBasics/goexercises/mypackage"
"goBasics/goexercises/numbers"
"goBasics/goexercises/structs"
. "goBasics/goexercises/flow"
"goBasics/goexercises/stringsc"
)
func main() {
firstName := mypackage.GetName()
fmt.Println("Your name is: ", firstName)
stringUtf8 := mypackage.GetUnicode()
fmt.Println("Unicode string: ", stringUtf8)
sumResult := numbers.Sum(50, 50)
fmt.Println("Sum result: ", sumResult)
a, b, c := numbers.GetVariables()
fmt.Println("Numbers a, b, c:", a, b, c)
f32, f34 := numbers.GetFloat()
fmt.Println("Numbers f32, f34:", f32, f34)
structs.GetArray()
structs.GetSlice()
IfTest();
SwitchTest();
stringsc.Strings2()
fmt.Println(structs.GetMap())
fmt.Println(structs.GetMap2())
fmt.Println(structs.GetMap3("Sergio"))
structs.InterfaceTest()
}