Function

Functions and Pointers

Functions Go, does not have keywords like private, public, protected and final etc and Go does not have concept of inheritance so it is very important to understand how functions can be used to do things that we ideally do when we use any other language. Keyword func, is used for defining function. We have already seen the function main which is starting point of every application. func main() { fmt.