Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
160 Days of DSA (Win T-Shirt!)
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
Sign In
▲
Similar Topics
Go Language
770+ articles
factorial
130+ articles
GoLang-time
76 articles
Golang-String
64 articles
Golang-Slices
54 articles
Golang-Pointers
14 articles
Go-Functions
12 articles
Golang-Arrays
10 articles
Go-Keywords
7 articles
Golang-Interfaces
5 articles
Golang-Program
62 posts
Popular Articles
Recent Articles
How to Sort Golang Map By Keys or Values?
Last Updated: 04 April 2024
Let's say we have a map and want to find a specific key-value pair but it can be located in any order, so to have the map in Golang in a par
...read more
Go Language
Golang-Program
Geeks-Premier-League-2022
Geeks Premier League
How to add a method to struct type in Golang?
Last Updated: 22 June 2020
Structs consist of data, but apart from this, structs also tell about the behavior in the form of methods. Methods attached to structs is ve
...read more
Picked
Go Language
Golang-Program
How to Assign Default Value for Struct Field in Golang?
Last Updated: 22 June 2020
Default values can be assigned to a struct by using a constructor function. Rather than creating a structure directly, we can use a construc
...read more
Picked
Go Language
Golang-Program
Similar Topics
Go Language
770+ articles
factorial
130+ articles
GoLang-time
76+ articles
Golang-String
64+ articles
Golang-Slices
54+ articles
Golang-Pointers
14+ articles
Go-Functions
12+ articles
Golang-Arrays
10+ articles
Go-Keywords
7+ articles
Golang-Interfaces
5+ articles
How to Print Specific date-time in Golang?
Last Updated: 17 May 2020
Golang supports time formatting and parsing via pattern-based layouts. In Go, the current time can be determined by using time.Now(), provid
...read more
Picked
Go Language
GoLang-time
Golang-Program
How to Get Current Date and Time in Various Format in Golang?
Last Updated: 17 December 2021
Package "time" in Golang provides functionality for measuring and displaying time. The calendrical calculations always assume a Gregorian ca
...read more
Picked
Go Language
GoLang-time
Golang-Program
Time Formatting in Golang
Last Updated: 17 May 2020
Golang supports time formatting and parsing via pattern-based layouts. To format time, we use the Format() method which formats a time.Time
...read more
Picked
Go Language
GoLang-time
Golang-Program
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
...read more
Picked
Go Language
Go-Functions
Golang-Program
How to convert Int data type to Float in Golang?
Last Updated: 10 May 2020
In Golang, the data types are bound to variables rather than the values, which means that, if you declare a variable as int, then you can st
...read more
Picked
Go Language
Golang-Program
How to Take Input from the User in Golang?
Last Updated: 10 May 2020
Scanln function can be used to take the input from the user in the Golang. Below is the example of taking input from the user:[sourcecode la
...read more
Picked
Go Language
Write From Home
Golang-Program
How to check pointer or interface is nil or not in Golang?
Last Updated: 10 May 2020
In Golang, nil check is frequently seen in GoLang code especially for error check. In most cases, nil check is straight forward, but in inte
...read more
Picked
Go Language
Golang-Pointers
Golang-Interfaces
Golang-Program
Golang program that uses switch, multiple value cases
Last Updated: 02 November 2022
Switch statement is a multiway branching which provides an alternative way too lengthy if-else comparisons. It selects a single block to be
...read more
Picked
Go Language
Golang-Program
Golang program that uses structs as map keys
Last Updated: 10 May 2020
A map in Golang is a collection of unordered pairs of key-value. It is widely used because it provides fast lookups and values that can retr
...read more
Picked
Go Language
Golang-Program
How to Convert string to integer type in Golang?
Last Updated: 14 September 2021
Strings in Golang is a sequence of variable-width characters where each and every character is represented by one or more bytes using UTF-8
...read more
Picked
Go Language
Golang-Program
How to Get the Current Working Directory in Golang?
Last Updated: 10 May 2020
Getwd functionis used to get the current working directory in Golang, the function returns the rooted path name and if the current directory
...read more
Picked
Go Language
Golang-Program
How to Reverse a String in Golang?
Last Updated: 04 May 2020
Given a string and the task is to reverse the string. Here are a few examples.Approach 1: Reverse the string by swapping the letters, like f
...read more
Picked
Go Language
Golang-String
Golang-Program
1
2
3
4
5
>>
Last
1
2
3
4
5
>>
Last
1
2
3
4
>>
Last
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 !