Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Go Language
787+ articles
Golang
169+ articles
Golang-Arrays
10+ articles
Go-Functions
12 posts
Recent Articles
Popular Articles
Functions in Go Language
Last Updated: 05 November 2024
In Go, functions are blocks of code that perform specific tasks, which can be reused throughout the program to save memory, improve readability, and save time. Functions m...
read more
Go Language
Go-Functions
Golang
Function Returning Multiple Values in Go Language
Last Updated: 01 August 2019
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
Anonymous function in Go Language
Last Updated: 29 October 2024
An anonymous function is a function that doesn’t have a name. It is useful when you want to create an inline function. In Go, an anonymous function can also form a closure...
read more
Go Language
Go-Functions
Golang
Variadic Functions in Go
Last Updated: 25 October 2024
Variadic functions in Go allow you to pass a variable number of arguments to a function. This feature is useful when you don’t know beforehand how many arguments you will ...
read more
Go Language
Go-Functions
Golang
Function Arguments in Golang
Last Updated: 29 October 2024
In Golang, functions are groups of statements used to perform tasks, with optional returns. Go supports two main ways to pass arguments: Pass by Value and Pass by Referenc...
read more
Go Language
Go-Functions
Golang
Function as a Field in Golang Structure
Last Updated: 06 November 2024
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
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
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
How to pass an Array to a Function in Golang?
Last Updated: 25 October 2024
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
Golang program that uses func with variable argument list
Last Updated: 29 February 2024
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
Golang program that uses func with two arguments
Last Updated: 10 May 2020
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
Recursive Anonymous Function in Golang
Last Updated: 10 July 2020
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
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !