Basic Declaration

Download go eBook

Example

A simple function that does not accept any parameters and does not return any values:

func SayHello() {
    fmt.Println("Hello!")
}

Stats

Contributors: 1
2016-04-07
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook