Tag: Golang

Golang Linked List | Data Structure

In this Blog, We will learn about one of the Data Structures in Golang that is Linked List. We will learn creation of nodes, linking of nodes and functions based on Golang Linked List. Before Learning Linked List you make sure the Golang Basics are clear and should have knowledge about Golang pointers. What is…
Read more

Golang ResponseWriter & Request | Handler Interface

The Previous Blog we talked about How the Golang HTTP Server is created using the Golang TCP Server using the Go Net Package. In this blog, we will take a look at Golang ResponseWriter and Request in net/http package Handler Interface. But we don’t have to make that much effort just to create a server…
Read more

Golang TCP – Build HTTP Server – Go Net Package

In this blog, we will learn about the Golang TCP and how we can build Go HTTP (Hypertext transfer protocol) Server using TCP (Transmission Control Protocol) from the Golang Net Package. To use Golang TCP and related functions we are going to use the Net Package. import “net” Golang HTTP is built over TCP, as…
Read more

Golang Fprintf, Fprint, and Fprintln | Go FMT Package

In this blog, we are going to look at Golang Fprint, Fprintf, and the Fprintln Format functions from the Go FMT package. Import Golang fmt package to use this Format function. Golang Fprint func Fprint(w io.Writer, a …interface{}) (n int, err error) The Golang FMT package Fprint function takes a writer and variadic parameter in…
Read more

Golang UTF8 Package – Text Encoding

In this blog, we will learn about the Golang UTF8 Package and Character Encoding in Programming Languages. The Golang Unicode/utf8 package provides several useful functions for querying and manipulating strings and []bytes which hold UTF8 bytes. First of all lets understand the difference between UTF8 and ASCII Encoding. ASCII vs UTF8 Encoding In earlier days…
Read more

Golang Imports, Types of Imports & Blank Identifier

In this blog, we will take a look at how Golang imports packages in order to access the code functionality. In the previous blog, we looked at the organization of code into Golang Packages, Workspace, and Environment variables like GOROOT and GOPATH. Golang Import The import statement tells the go compiler where to look on…
Read more

Golang Set GOPATH and GOROOT

In this blog, we will take a look at how code is organized in Golang into packages, how to interact with Golang packages, and how to Set GOPATH and GOROOT. Packages are one of the most important concepts in Golang. Golang Packages helps us to separate semantic units of functionality into different packages. This also…
Read more

Golang Channel Syntax, Global Channel

In this blog, we will learn about Golang Channel Syntax. Let us see what we will be learning in this Golang Channel Syntax blog. Golang Channels Basics Restricted Data Flow in Golang Channels Send Only Channel Receive only Channel Golang Buffered Channels Iterating over Channels in Golang and Closing Channels in Golang(for … range loops)…
Read more

Golang Goroutine Syntax and Creation

We will learn about Golang goroutines, creating goroutines to achieve Concurrency in Golang, synchronization using wait groups and Mutexes, and Parallelism in Golang.

Golang Interface Syntax, Composing, and Empty Interfaces

In this blog, we will learn about Golang Interface Syntax. Let’s see what we are going to learn in Golang Interface Syntax. Syntax of Golang Interface Basics of Golang Interface Composing Interfaces Empty Interface in Golang Before learning Golang Interface make sure Basics of Golang are clear: Golang Interface Syntax type <Interface_name> interface { // Method – Initialization } Example:…
Read more