Saved Bookmarks
| 1. |
Explain The Syntax To Create A Function In Go? |
|
Answer» The general FORM of a function definition in Go programming language is as follows − func function_name( [parameter list] ) [return_types] A function definition in Go programming language consists of a function header and a function body. Here are all the parts of a function −
The general form of a function definition in Go programming language is as follows − func function_name( [parameter list] ) [return_types] A function definition in Go programming language consists of a function header and a function body. Here are all the parts of a function − |
|