Welcome To Golang By Example

Menu
  • Home
  • Blog
  • Contact Us
  • Support this website
Menu

Tag: golang

Case insensitive string comparison in Go (Golang)

Posted on March 25, 2020March 25, 2020 by admin

Overview In Golang string are UTF-8 encoded. strings package of GO provides an EqualFold method that can be used to do case insensitive comparison of two strings in Go. Below is the…

Find and delete a character in string in Go (Golang)

Posted on March 22, 2020March 22, 2020 by admin

Overview strings package of GO provides a ReplaceAll method that can be used to replace all non-overlapping instances of a given substring with a new substring. We can use this method to…

Index character in a string in Go (Golang)

Posted on March 16, 2020March 16, 2020 by admin

In Golang string is a sequence of bytes. A string literal actually represents a UTF-8 sequence of bytes. In UTF-8, ASCII characters are single-byte corresponding to the first 128 Unicode characters. All other…

Install GO (aka Golang) on Linux

Posted on March 8, 2020March 8, 2020 by admin

GO is available to be installed on Win, Mac, and Linux platforms. Let’s see the installation set up for Linux Install Download the archive of latest version of GO from here  –…

Install GO (aka Golang) on MAC

Posted on March 8, 2020March 9, 2020 by admin

Overview GO is available to be installed on Win, Mac, and Linux platforms. GO can be installed on MAC in three ways Using archive Using brew Using .pkg installer Let’s look at…

Implement while loop in Go (Golang)

Posted on March 8, 2020March 8, 2020 by admin

Go doesn’t have the while keyword. Instead, it has the for keyword only. However for keyword can be used to simulate the functionality the same as while. for loop in GO basically…

User defined function types in Go (Golang)

Posted on March 7, 2020March 7, 2020 by admin

Overview In GO, the function is also a type. Two functions will be of the same type if They have the same number of arguments with each argument is of the same type They…

Anonymous Function in Go (Golang)

Posted on March 7, 2020March 7, 2020 by admin

Overview As the name suggests anonymous functions are function which does not have any name.  In Golang function are first-class variables meaning that They can be assigned to a variable Passed around…

IIF or Immediately Invoked Function in Go (Golang)

Posted on March 6, 2020March 6, 2020 by admin

Overview: IIF or Immediately Invoked Function are those function which can be defined and executed at the same time. A function can be invoked immediately by appending a () after the end…

Get the IP address from an incoming HTTP request

Posted on February 29, 2020February 29, 2020 by admin

Overview In this article, we will get the IP address of the client for an incoming HTTP request using X-REAL-IP header If X-REAL-IP is empty then we will fall back to X-FORWARDED-FOR header….

Posts pagination

Previous 1 … 36 37 38 … 41 Next
Follow @golangbyexample

Popular Articles

Golang Comprehensive Tutorial Series

All Design Patterns in Go (Golang)

Slice in golang

Variables in Go (Golang) – Complete Guide

OOP: Inheritance in GOLANG complete guide

Using Context Package in GO (Golang) – Complete Guide

All data types in Golang with examples

Understanding time and date in Go (Golang) – Complete Guide

©2025 Welcome To Golang By Example | Design: Newspaperly WordPress Theme