Blog

func blog() interface{}

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