Articles by Tuan Nguyen
Golang Command Line Arguments Example [Tutorial]
Parse single or multiple command line arguments in golang. Use flag and other methods to read and implement command line arguments
Copy different data types in GO [shallow & deep copy]
Different methods to copy structs in golang using deep copy and shallow copy
Golang pass by value VS pass by reference [Explained]
In conclusion, pass-by-value copies the value, but pass-by-reference provides the memory location.
Golang UDP Server and Client Example [Tutorial]
Step by Step instructions to set up golang UDP Server and Client with Examples
Golang TCP Server and Client Example [Tutorial]
Step by step instructions to setup golang TCP server and client with examples
Golang JWT (Json Web Token) Examples
In this tutorial we learned how to create HTTP Server and Client using golang JWT (JSON Web Token)
Golang regexp Examples [In-Depth Tutorial]
In the Python section, we have introduced some examples of working with regex (regular expression). In Golang, the built-in package regexp implements regular
Golang Websocket Examples [Server and Client]
Examples to setup golang websokcet server and client for testing purpose.
Golang os.Stat Usage and Examples
golang os state Stat returns a FileInfo describing the named file. If there is an error, it will be of type *PathError.
Golang seek Examples [Tutorial]
Golang seek from has three constant values as follows: SeekStart = 0: the file's starting point is used. SeekCurrent = 1: the seek is made in relation to the …
Golang reflect Examples [Tutorial]
Golang reflect implements run-time reflection, allowing a program to manipulate objects with arbitrary types.
What is the Golang Gopher? History, Meaning and Go Mascot Explained
Learn about the Golang Gopher, the official mascot of the Go programming language. Discover its origin, creator Renée French, history, design evolution, and why …
How to split string in Golang? [SOLVED]
Golang string Splitusing strings.Split(), SplitAfter(), Fields(), FieldsFunc() function. Perform Split string with regular expression
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.
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 …
