Hello You function (passing parameter)
- func
package main
import (
"fmt"
)
func main() {
hello("Foo")
}
func hello(text string) {
fmt.Printf("Hello %s\n", text)
}
Hello Foo
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
package main
import (
"fmt"
)
func main() {
hello("Foo")
}
func hello(text string) {
fmt.Printf("Hello %s\n", text)
}
Hello Foo