Posts for golang

Deven
Deven wrote

Golang convert string to int – example

In Golang, you can convert string to int type using the following functions. strconv.ParseInt(s, base, bitSize) strconv.Atoi(s) Let’s checkout the example of above functions: 1. Golang convert string to int using strconv.ParseInt(s, base, bitSize) The strconv.ParseInt(s, base, bitSize) converts the given string to an integer in the given base (0, 2 to 36) and bit […]

February 7, 2021 in Code examples
Shubham
Shubham wrote

Build a CRUD application in Golang with PostgreSQL

In this tutorial, we are going to build a CRUD application in Golang. We are going to use gorilla/mux library for the apis and PostgreSQL DB to store the data. So, without wasting any time, roll up your sleeves. This tutorial is a complete hands-on. Prerequisites Install golang v1.11 or above. Basic understanding of the […]

February 29, 2020 in GoLang & Tutorials
Shubham
Shubham wrote

Learn How to use JSON in Golang

When you start a project which interacts with the outer world, it requires data exchange. To make a project successful this interaction must be simple and efficient. What is Data Exchange? Data exchange is the process of taking data structured under a source schema and transforming it into data structured under a target schema, so […]

February 16, 2020 in GoLang & Tutorials