Welcome to tutorial no. 6 in our Golang tutorial series. What is a function? A function is a block of code that performs a specific task. A function takes an input, performs some operations on the input and generates outputs. For example, a function can take the radius as input and calculate the area and circumference as output. Function declaration The following is the syntax for declaring a function in Go