Welcome To Golang By Example

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

Tag: golang

Goroutines in Go (Golang)

Posted on August 5, 2020November 26, 2020 by admin

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

Receive or fetch multiple return values from a goroutine in Go(Golang)

Posted on July 30, 2020July 30, 2020 by admin

Channels can be used to fetch return value from a goroutine. Channels provide synchronization and communication between goroutines. You can send the return value to a channel in the goroutine and then…

Receive or Fetch Return Value from a goroutine in Go(Golang)

Posted on July 30, 2020January 1, 2021 by admin

Channels can be used to fetch return value from a goroutine. Channels provide synchronization and communication between goroutines. You can send the return value in a channel in the goroutine and then…

Access Underlying Variable of Interface in Go (Golang)

Posted on July 18, 2020July 18, 2020 by admin

Overview Like any other variable, an interface variable is represented by a type and value. Interface value, in turn under the hood, consists of two tuple Underlying Type Underlying Value See below…

Zero Value of Interface in Go (Golang)

Posted on July 18, 2020July 18, 2020 by admin

Default or zero value of an interface is nil. Below program demonstrates that Output

Non-struct Custom Type Implementing an interface in Go (Golang)

Posted on July 18, 2020July 18, 2020 by admin

Overview It is also perfectly ok for any non-struct custom type to implement an interface. Let’s see an example Assume we have an interface animal as below Code Output The above program…

Inner Working or Internals of an Interface in Go (Golang)

Posted on July 18, 2020July 18, 2020 by admin

Overview Like any other variable, an interface variable is represented by a type and value. Interface value, in turn under the hood consists of two tuple Underlying Type Underlying Value See below…

Print underlying type and value of an interface in Go (Golang)

Posted on July 18, 2020July 18, 2020 by admin

Overview Golang provides format identifiers to print the underlying type and underlying value represented by the interface value. %T can be used to print the concrete type of the interface value %v…

Type Implementing multiple interfaces in Go (Golang)

Posted on July 18, 2020July 18, 2020 by admin

Overview A type implements an interface if it defines all methods of an interface. If that type defines all methods of another interface then it implements that interface. In essence, a type…

Declaring and Implementing an interface in Go (Golang)

Posted on July 18, 2020July 18, 2020 by admin

Overview Interface is a type in Go which is a collection of method signatures. These collection of method signatures are meant to represent a behaviour. The interface declares only the method set…

Posts pagination

Previous 1 … 28 29 30 … 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