Functions
Declaration
Functions in Boson are declared using the func
keyword.
Function declaration syntax is stolen directly from Go. It is related to variable declaration syntax
func GreaterThanTen(i int) bool {
return i > 10
}
Functions in Boson are declared using the func
keyword.
Function declaration syntax is stolen directly from Go. It is related to variable declaration syntax
func GreaterThanTen(i int) bool {
return i > 10
}