/trunk/Examples/go/multimap/runme.go
Go | 26 lines | 17 code | 5 blank | 4 comment | 0 complexity | 739499f86a1dbe8b7211d0d57dab46a3 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- 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])
- }