Welcome To Golang By Example

Menu
  • Home
  • Blog
Menu

Tag: method

Method on a non-struct type in Go (Golang)

Posted on June 20, 2023June 20, 2023 by admin

Methods can also be defined on a non-struct custom type. Non-struct custom types can be created through type definition. Below is the format for creating a new custom type For example we…

Function/Method Overloading in Golang (Alternatives/Workaround)

Posted on December 1, 2023December 1, 2023 by admin

Function/Method Overloading means that that the same function/method name can be used with a different number and types of parameters See this post for difference between function and method in Go –…

Difference between method and function in GO

Posted on December 1, 2023December 1, 2023 by admin

There are some important differences between method and function. Let’s see the signature of both Function: Method: From the above signature, it is clear that method has a receiver argument. A receiver…

Template Method Design Pattern in Go (Golang)

Posted on November 30, 2023December 27, 2023 by admin

Note: Interested in understanding how all other design patterns can be implemented in GO. Please see this full reference – All Design Patterns in Go (Golang) Introduction: Template Method Design Pattern is…

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

©2024 Welcome To Golang By Example | Design: Web XP