aboutsummaryrefslogtreecommitdiff
path: root/Examples/go/multimap/runme.go
blob: 571fac7c2b28fcc810ebed12816716a66cbafedb (plain)
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
package main

import (
	"fmt"

	. "example"
)

func main() {
	// Call our gcd() function
	x := 42
	y := 105
	g := Gcd(x, y)
	fmt.Println("The gcd of ", x, " and ", y, " is ", g)

	// Call the gcdmain() function
	args := []string{"gcdmain", "42", "105"}
	Gcdmain(args)

	// Call the count function
	fmt.Println(Count("Hello World", 'l'))

	// Call the capitalize function
	capitalizeMe := []string{"hello world"}
	Capitalize(capitalizeMe)
	fmt.Println(capitalizeMe[0])
}