TAG

Golang

Golang io.ReadCloser Examples

Golang io.ReadCloser interface is built out of an io.Reader and an io.Closer:

By tuannguyen · 4 min read · GO

How to pass default parameter to golang function?

Golang does not support optional parameters (can not set default values for parameters). But there are different methods to add golang default parameter.

By tuannguyen · 3 min read · GO

Declare a constant array in Golang [SOLVED]

Slice or const array are not supported in Go. It is thus because Go computes constant values at compilation time. Slices or arrays are always assessed in- …

By tuannguyen · 3 min read · GOLANG Solutions