PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/go/multimap/runme.go

#
Go | 26 lines | 17 code | 5 blank | 4 comment | 0 complexity | 739499f86a1dbe8b7211d0d57dab46a3 MD5 | raw file
 1package main
 2
 3import (
 4	"fmt"
 5	. "./example"
 6)
 7
 8func main() {
 9	// Call our gcd() function
10	x := 42
11	y := 105
12	g := Gcd(x, y)
13	fmt.Println("The gcd of ", x, " and ", y, " is ", g)
14
15	// Call the gcdmain() function
16	args := []string{"gcdmain", "42", "105"}
17	Gcdmain(args)
18
19	// Call the count function
20	fmt.Println(Count("Hello World", 'l'))
21
22	// Call the capitalize function
23	capitalizeMe := []string{"hello world"}
24	Capitalize(capitalizeMe)
25	fmt.Println(capitalizeMe[0])
26}