Articles by Tuan Nguyen
Golang prompt - Create interactive CLI prompt in GO
Create a simple and interactive golang prompt with examples
Fix 'declared and not used' message in Golang [SOLVED]
How to fix declared and not used error in golang with examples
Golang read and update same file [SOLVED]
Update file using os.OpenFile with os.O_APPEND flag and Write() function, Using WriteString() function to append string to a file, Using WriteAt() function to …
Golang os.file Usage and Examples
We explore different golang os modules while working with files.
Golang Encrypt Decrypt String, File, Binary, JSON, Struct
Golang encrypt decrypt String, File, Binary, JSON and Struct with Examples
Golang GOPATH vs GOROOT Comparison
We perform a comparison and difference between GOPATH and GOROOT variable available in go env.
Golang URL Encode & Decode Practical Examples
In this tutorial we will explore golang url encode and decode using url.QueryEscape, url.PathEscape, url.QueryUnescape and url.PathUnescape with examples
Golang Sort Slice [Ascending & Descending Order]
Golang sort slices with strings, integers, float64 in ascending and descending order
Golang Time Format & Parse (Layouts, Examples, RFC3339 Guide)
Learn Golang time format and parse with practical examples. Format dates like YYYY-MM-DD, use RFC3339, understand layouts (2006-01-02), and fix common parsing …
Golang http - Create HTTPS Server and Client
Use golang http to setup a basic and advanced web server and client. The client go code will establish communication with HTTPS server over TLS, MTLS or …
Golang Graphql Tutorial with Examples
Complete golang graphql tutorial with sample schema and resolving the content with schema. Integrate graphql with HTTP
Golang Type Assertion Explained with Examples
Golang type assertion is a mechanism for working with the underlying concrete value of an interface. Type switches use switch blocks for data types and allow …
30+ Golang Interview Questions and Answers
30+ golang interview questions and answers for Junior (Beginner), Middle and Advanced (Experienced) professionals
Golang Parse JSON (With or Without Struct)? [SOLVED]
golang parse json file, golang parse json array, golang parse json response without struct, golang parse json to struct, golang parse json to map, golang json …
Golang JSON Unmarshal Examples
Use golang json unmarshal to parse JSON data with simple and complex structured data and unstructured data with examples
