Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.5K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Go Language
765+ articles
Golang
169+ articles
Golang-Arrays
10+ articles
Go-Functions
12 posts
Recent Articles
Recursive Anonymous Function in Golang
Last Updated: 15 July 2025
Recursion is a process in which a function calls itself implicitly or explicitly and the corresponding function is called recursive function. Go language supports special ...
read more
Picked
Go Language
Go-Functions
Golang program that uses func with two arguments
Last Updated: 12 July 2025
Functions may use certain parameters to receive values and perform the task required accordingly. The syntax for a function with two arguments is:func function_name( [para...
read more
Picked
Go Language
Go-Functions
Golang program that uses func with variable argument list
Last Updated: 12 July 2025
In Golang, a function that can be called with a variable argument list is known as a variadic function. One can pass zero or more arguments in the variadic function. If t...
read more
Picked
Go Language
Go-Functions
Golang-Program
How to pass an Array to a Function in Golang?
Last Updated: 12 July 2025
In Go, arrays are used to store a fixed-length collection of data of the same type. To manage this data effectively, you may often need to pass arrays to functions. In thi...
read more
Go Language
Go-Functions
Golang
Golang-Arrays
Methods With Same Name in Golang
Last Updated: 26 August 2019
In Go language, it is allowed to create two or more methods with the same name in the same package, but the receiver of these methods must be of different types. This feat...
read more
Go Language
Go-Functions
Golang
Methods in Golang
Last Updated: 25 October 2024
Go methods are like functions but with a key difference: they have a receiver argument, which allows access to the receiver's properties. The receiver can be a struct or n...
read more
Go Language
Go-Functions
Golang
Function as a Field in Golang Structure
Last Updated: 12 July 2025
In Go, you can define functions as fields within a structure (struct). This feature allows you to associate behaviors (methods) directly with data types, enabling a more o...
read more
Go Language
Go-Functions
Golang
Function Arguments in Golang
Last Updated: 26 June 2026
Function arguments are the values passed to a function when it is called. They allow functions to receive input data and perform operations on it. Go always passes argumen...
read more
Go Language
Go-Functions
Golang
Anonymous function in Go Language
Last Updated: 26 June 2026
Anonymous functions are functions without a name. They are useful for creating inline functions, assigning functions to variables, and passing functions as arguments to ot...
read more
Go Language
Go-Functions
Golang
Variadic Functions in Go
Last Updated: 26 June 2026
Variadic functions allow a function to accept a variable number of arguments of the same type. Instead of defining a fixed number of parameters, the ... syntax is used, ma...
read more
Go Language
Go-Functions
Golang
Function Returning Multiple Values in Go Language
Last Updated: 11 July 2025
In Go language, you are allowed to return multiple values from a function, using the return statement. Or in other words, in function, a single return statement can return...
read more
Go Language
Go-Functions
Golang
Functions in Go Language
Last Updated: 26 June 2026
Functions are reusable blocks of code that perform a specific task. They help organize programs into smaller units, improve code readability, and reduce duplication by all...
read more
Go Language
Go-Functions
Golang