TAG

Golang

Is golang tuple possible? [SOLVED]

By design golang tuple is not possible but we can work around this by using interfaces and generics.

By tuannguyen · 4 min read · GOLANG Solutions

[SOLVED] Define GO function with multiple types

We can either use an empty interface using interface{} or use generics to define golang function accept two types or multiple types as an input.

By tuannguyen · 4 min read · GOLANG Solutions

Golang Context Complete Tutorial with Examples

The golang context package is part of the standard library. It defines a Context struct type and three functions— withDeadline(), withCancel(), and …

By admin · 9 min read · GO