CATEGORY

GOLANG Solutions

Golang slice append return value? [SOLVED]

In the previous chapter, we discuss how to use append function in Golang. append is a built-in function which appends elements to the end of a slice. If it

By tuannguyen · 4 min read · GOLANG Solutions

How to split string in Golang? [SOLVED]

Golang string Splitusing strings.Split(), SplitAfter(), Fields(), FieldsFunc() function. Perform Split string with regular expression

By tuannguyen · 5 min read · GOLANG Solutions

How to append to a slice in Golang [SOLVED]

Different ways in golang to append to slice. We can append one slice to another, strings, byte string, int, elements to a slice.

By tuannguyen · 4 min read · GOLANG Solutions

Declare new error in Golang [SOLVED]

There are various ways to declare new error in golang such as using errors.New() function or Using Errorf() with fmt package to return an error, Define a custom …

By tuannguyen · 4 min read · GOLANG Solutions