Golang provides a number of built-in date time functions which help in performing several operations while dealing with date and time. Golang time package is a part of the core. There is no installation required to use this package only you need to import "time" package. A list of important Golang time examples are as follow:Read More
Slice sorting or searching functions allow you to interact with and manipulate slice in various ways. Golang sort functions are the part of the core. There is no installation required to use this function only you need to import "sort" package.Read More
Implementing a Go interface is done implicitly. In Go, there is no need to explicitly implement an interface into a concrete type by specifying any keyword. To implement an interface into a concrete type, just provide the methods with the same signature that is defined in the interface typeRead More

Methods and Objects

7/29/2017 5:59 PM

In object-oriented programming, an object is simply a value or variable that has methods, and a method is a function associated with a particular type. An object-oriented program is one that uses methods to express the properties and operations of each data structure, hence there is no need to access the object representation directly.Read More