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

# · Go · 26 lines · 17 code · 5 blank · 4 comment · 0 complexity · 739499f86a1dbe8b7211d0d57dab46a3 MD5 · raw file

  1. package main
  2. import (
  3. "fmt"
  4. . "./example"
  5. )
  6. func main() {
  7. // Call our gcd() function
  8. x := 42
  9. y := 105
  10. g := Gcd(x, y)
  11. fmt.Println("The gcd of ", x, " and ", y, " is ", g)
  12. // Call the gcdmain() function
  13. args := []string{"gcdmain", "42", "105"}
  14. Gcdmain(args)
  15. // Call the count function
  16. fmt.Println(Count("Hello World", 'l'))
  17. // Call the capitalize function
  18. capitalizeMe := []string{"hello world"}
  19. Capitalize(capitalizeMe)
  20. fmt.Println(capitalizeMe[0])
  21. }