The sytax of a function declartion is the func keyword followed by the function name identifier followed by parenthesis containing zero or more argument names. After the statement_block the endfunc keyword terminates the function declaration.
func identifier ( { identifier { , identifier { , … } )
{ statement_block }
endfunc