Articles by Tuan Nguyen
Golang FlashDB Tutorial- In Memory Database
Golang flashdb is an in memory database written in golang. Read, Write, Store, Update and Delete key and value content inside the database with examples
Golang memdb Tutorial [With Examples]
golang memdb is a simple key value pair based in memory database. We learned how to create a database, insert records, query and then delete the records. …
Golang SQLite3 Tutorial [With Examples]
Golang sqlite tutorial with CRUD Operation. Executing commands on SQLITE database, Select statement, Insert, Read and Delete Operation with examples
Golang MongoDB Tutorial with Examples
Using mongo-driver and mgo package to use golang mongodb with examples to perform CRUD operations
Golang Viper: The Unsung Hero of Configuration Wizards
golang viper tutorial to source YAML, JSON or ENV files and get variables. Set default values for empty or missing variables using viper.SetDefault
Golang lint - Different methods with Best Practices
Golang linting is a way to verify the go code to identify any kind of compilation issues, or performance improvements which can be done. We can perform linting …
Golang Parse YAML file [With or Without Struct]
We can use YAML package in golang to parse YAML file and store the content inside struct or map using yaml.Unmarshal.
Golang Math Package Examples [Tutorial]
golang math package examples to perform calculations in go code using math sub packages
Golang read multiple lines from stdin [SOLVED]
We can use fmt.Scan(), bufio.Reader(), bufio.Scanner() function in golang to read multiple lines from STDIN input with examples.
Golang concatenate or merge two or more slices [SOLVED]
We can use copy() and append() function to merge or concatenate two or more slices in Golang.
Golang remove backslash from string [SOLVED]
We can use strings.replace() and strings.replaceall() function to remove backslash from string in golang by replacing backslash with empty character
Go Prompt - Create Interactive CLI prompts with Examples
To read input from users in Go and create an interactive CLI based go prompt, we use the fmt, bufio, and os packages.
Golang generate random boolean [Simple Examples]
Use rand.Intn() function to generate random boolean in golang
PROPERLY delete an element from map in GO [SOLVED]
We can delete elements from map using 2 different methods. Check if the key exists and delete or delete the key without checking.
PROPERLY delete an element from Slice in GO [SOLVED]
2 different methods to remove elements from slice in golang. We can either maintain the order or remove elements without maintaining the order
