Tag Archives: Golang

Golang: interfaces – the “magic” of calling methods through interface

29 November 2025
 

 Interfaces in Go allow you to describe access to data or behavior without providing concrete implementations inside the interface itself. In this way, we create a “common bus” that we can then use to “connect” external “systems.” In other words, an interface is an abstraction that defines a contract. The contract describes what can be… Read More »

Golang: pointers – detailed overview

20 April 2019
 

 What is the pointer? Shortly, the pointer is a variable which stores an address of another variable, where some data is stored. A pointer example Let’s take the simplest example where a pointer is used: package main import “fmt” func main() { a := 1 b := &a fmt.Println(“A: “, a) fmt.Println(“B: “, b) fmt.Println(“B:… Read More »

Go: checking public repositories list in Github. Go slices comparison. The first Golang experience.

13 April 2019
 

 The task is to write a tool which will be started from a Jenkin’s job by a cron and will check an organization’s public repositories list in the Github. A Docker-image build and a Jenkins job are described in the Jenkins: a job to check a Github organization’s public repositories list post. Then it has… Read More »