gRPC server app using Go

Go gRPC server

TL;DR The source code is available in https://github.com/rinoymjoseph/learning-go Create a directory Initialize a go project named ‘grpc-demo’ Create a directory to place proto file Install protoc-gen-go and protoc-gen-go-grpc. Add GOPATH/bin to path  Generate the gRPC stubs that can be used to implement the service and consume from clients This creates two files in calc folder. … Read more

REST Api in Go using Gorilla/Mux

Gorilla/mux REST Api

This post explains how to develop REST APIs in Go language using Gorilla Mux Gorilla Mux is a package from the Gorilla Web Toolkit. It provides simple ways to create HTTP routers. Using the package, we can redirect program flow to respective HTTP handler functions. Create a directory for the project Initialize a go project … Read more

Go Installation on Ubuntu 22.04

Go installation on Ubuntu

Update package index files Download package Remove any previous Go installation by deleting the /usr/local/go folder (if it exists), then extract the archive you just downloaded into /usr/local, creating a fresh Go tree in /usr/local/go: Add /usr/local/go/bin to the PATH environment variable Add below line to the end of file Check the go version Terminal output for reference