Christos Kotsis



Posted by Christos Kotsis

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
Kafka: Streaming Video with Python and OpenCV

Kafka: Streaming Video with Python and OpenCV

Introduction Our goal is to read a local video and start pushing it into kafka, then, using a consumer read the specific topic, decode the data and play the video on screen.

Continue reading
Directory Bookmarks App

Directory Bookmarks App

The full code is available as a link in the end Intro In this post I would like to show you how to build a simple app that manages directories with aliases.

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
Building Docker containers with stages

Building Docker containers with stages

Build a docker container by using cached stages

Continue reading