go

Go: Extracting private struct fields from interface

Go: Extracting private struct fields from interface

Description While wrong, for convinience sometimes we use interfaces to pass around values of certain types. An example for this would be the following: package main type S interface{} package main() { var s S s = "someString" } From the golang tutorial we know that if we want to cast (assert) the value of an interface back to the original type, we use

Continue reading
Go: Interfaces

Go: Interfaces

Intro In this post we will talk about go interfaces and then show some use cases. Definition The definition of an interface can be put as follows An interface type is defined as a set of method signatures.

Continue reading
HTTP Ping-Pong Go App with CRUD DB Operations

HTTP Ping-Pong Go App with CRUD DB Operations

This post extends GoApp-Http-Service-Ping-Pong Intro In this post we will go through the process of extending the http go app we made on the previous part with DB CRUD operations.

Continue reading
Simple HTTP Ping-Pong Go App

Simple HTTP Ping-Pong Go App

Intro In this post we will go through the process of building a simple Rest API go application. Initially we will create a callback app in Go which will have one Rest API endpoint, then in the next part we will extend the application with CRUD DB Operations.

Continue reading