Welcome To Golang By Example

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

Tag: golang

Declare or create/initialize struct variable in Go (Golang

Posted on June 14, 2020June 14, 2020 by admin

Overview GO struct is named collection of data fields which can be of different types. Struct acts as a container that has different heterogeneous data types which together represents an entity. For…

Struct in Go (Golang)

Posted on June 14, 2020September 16, 2021 by admin

This is the  chapter 16 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – ArrayPrevious Tutorial – Pointer Now let’s check…

Check if two structs are equal or struct equality in Go (Golang)

Posted on June 14, 2020June 14, 2020 by admin

The first thing to know before considering struct equality is weather if all struct fields types are comparable or not Some of the comparable types as defined by go specification are boolean…

Exported and UnExported fields of a struct in Go (Golang)

Posted on June 14, 2020June 14, 2020 by admin

Go doesn’t have any public,  private or protected keyword. The only mechanism to control the visibility outside the package is using the capitalized and non-capitalized formats Capitalized Identifiers are exported. The capital letter…

Pretty print struct variables in Go (Golang)

Posted on June 13, 2020January 8, 2021 by admin

Note: If you are interested in learning Golang, then for that we have a golang comprehensive tutorial series. Do check it out – Golang Comprehensive Tutorial Series. Now let’s see the current tutorial….

Pointer to a struct in Go (Golang)

Posted on June 12, 2020June 12, 2020 by admin

In golang struct is named collection of data fields. These fields can be of different types. Struct acts as a container that has different heterogeneous data types which together represents an entity….

An efficient way to check if a key exists in a Map in Go (Golang)

Posted on June 9, 2020June 9, 2020 by admin

Below is the format to check if a key exist in the map There are two cases If the key exists val variable be the value of the key in the map…

Length of a map in Go (Golang)

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

The golang builtin function len() can be used to get the length of the map which is number of key-value pairs present in the map. Below is the format for using this…

Maps in Go (Golang)

Posted on May 21, 2020November 26, 2020 by admin

This is the  chapter 19 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – MethodPrevious Tutorial – Slice Now let’s check…

Slice in Go (Golang)

Posted on May 18, 2020July 14, 2022 by admin

This is the  chapter 18 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – MapsPrevious Tutorial – Array Now let’s check…

Posts pagination

Previous 1 … 31 32 33 … 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