CATEGORY

GOLANG Solutions

Using golang constants in struct [SOLVED]

In general, golang does not allow declaring a constant struct and constant within a struct. But we can use a custom function to perform this purpose

By tuannguyen · 3 min read · GOLANG Solutions

Golang channel with multiple receivers [SOLVED]

Reading from a single channel shared with multiple goroutines is concurrency in action. Concurrency in Go is the ability for a goroutine(s)(function) to run

By antonyshikubu · 6 min read · GOLANG Solutions