Hey guys in this post, we will discuss the different datatypes provided by Golang. Integer type Floating type String Boolean package main import ( "fmt" "reflect" ) func main()...
Category - Golang
Hey guys in this post, we will discuss some of the math functions that Golang provided out of the box. The math package in Go contains entirely of many math functions that can be used to do different things. Here are the main...
Hey guys in this post, we will write a program to print first 10 fibonacci numbers using Golang. package main import "fmt" func fibonacci() func() int { a, b := 0, 1 return func() int { ret := a a, b = b...
Hey guys in this post, we will discuss the functions and how to call functions in Golang with easy to understand examples. 1. Create a directory mkdir go-workspace 2. Move inside the directory cd go-workspace 3. Create an...
Hey guys in this post, we will discuss the difference between Println(), Printf() and Print() methods with examples. 1. Create a directory mkdir go-workspace 2. Move inside the directory cd go-workspace 3. Create an empty...
Hey guys in this post, we will see how to print Hello world in Go programming language with detailed explanation. 1. Create a directory mkdir go-workspace 2. Move inside the directory cd go-workspace 3. Create an empty...