Hello You function (passing parameter)



examples/go-functions/hello_foo_function.go
package main

import (
    "fmt"
)

func main() {
    hello("Foo")
}

func hello(text string) {
    fmt.Printf("Hello %s\n", text)
}

examples/go-functions/hello_foo_function.out
Hello Foo