By Tuan Nguyen
Remove fields from struct or hide them in JSON [SOLVED]
Introduction We have walked through some examples of working with JSON format in Golang. In today's article, I will guide you on removing fields from ...
By Tuan Nguyen
Introduction We have walked through some examples of working with JSON format in Golang. In today's article, I will guide you on removing fields from ...
Introduction to CRUD REST API Framework Go or Golang is an open source programming language developed and supported by Google. It is mostly used to ...
Introduction to CRUD REST API Framework CRUD is a common abbreviation when it comes to getting started with any framework or programming language. CRUD basically ...
Introduction to CRUD gRPC API Framework CRUD is an acronym that refers to operations that are considered necessary to implement in a persistent storage application: ...
Introduction In this article, I will show how to authenticate a user and authorize access to resources in our application. Authenticate and authorize are two ...
By Tuan Nguyen
In this guide, we'll go over the fundamentals of fuzzing in Go. We will create some fuzz tests for functions using the go command, and ...
By Tuan Nguyen
The underscore in front of an import statement is solely for its side-effects. An import declaration declares a dependency relation between the importing and imported ...
By Tuan Nguyen
In this article, we will walk through some examples of getting the directory of the currently running program. We compile a Go program for various ...
By Tuan Nguyen
In the previous chapter, we have shown you some examples of working with the HTTP server and client in Golang. The built-in package net/http in ...
By Tuan Nguyen
In order to make the string printable as plain text, we need to strip the string of its tags. In today's post, we will examine ...
By Tuan Nguyen
Golang is a perfect programming language for creating CLI applications. In today's post, I will introduce you Cobra - a library for creating powerful modern ...
By Tuan Nguyen
Understanding the init() function in GO Each Go package can optionally have a private function named init() that is automatically executed at the beginning of execution time—init() runs when ...
By Tuan Nguyen
In this tutorial, we will walk through some examples of converting int to time.Duration and doing some operations (division, multiply) with it. The built-in package ...