Hello World function



examples/function-hello-world/hello_world_function.go
package main

import (
    "fmt"
)

func main() {
    sayHello()
}

func sayHello() {
    fmt.Printf("Hello World!\n")
}

examples/function-hello-world/hello_world_function.out
Hello World!