golang (21 articles)

Syntax-Highlighting from a Markdown source in Go using Chroma

23.09.2018 - 6m read - golang go syntax-highlighting markdown chroma

This post shows how to create syntax-highlighted HTML from a markdown source using the chroma Go library.

Log Deletion on ELK stack using Go

15.09.2018 - 11m read - Go Golang ELK

This post will show a simple Go program for deleting old logs on the ELK stack.

Elasticsearch to Prometheus Exporter in Go

05.07.2018 - 11m read - Go Golang elasticsearch prometheus ops

This post describes how to create a server in Go, which provides data from Elasticsearch for Prometheus to consume.

Creating a Basic GraphQL API with Go

04.03.2018 - 10m read - Golang Go graphql

GraphQL is a powerful concept and this post will show how to translate an existing REST API to GraphQL using Go

Creating an iCal feed with Go

17.02.2018 - 9m read - golang go ical ics

In this short example we'll create a cached iCal feed with Go for a fake REST API

Basic Role-Based HTTP Authorization in Go with Casbin

05.01.2018 - 13m read - golang go auth http casbin

Casbin is an authorization library for Go, which supports several access control models. In this post we will take a look at a simple HTTP example featuring basic role-based authorization.

HTTP File Upload and Download with Go

10.12.2017 - 6m read - Go Golang file http upload download

One of Go's big upsides, for me, is its simplicity. This post shows another example of this, implementing a basic HTTP File Up- and Download using just the standard library.

Basic AST Manipulation in Go

10.11.2017 - 5m read - Go Golang ast

Traversing an AST (Abstract Syntax Tree) is useful for analysing and understanding a code-base, but the real power comes when we are able to manipulate it, which allows us to build tools. This post shows a simple example of how to manipulate the AST in Go.

Ethereum Prepaid Transactions with Go

If ethereum or any other smart-contract platform is ever going to reach mainstream, a mechanism for people without holding cryptocurrency is needed. While there are efforts to achieve this in the future on ethereum, this post shows a workaround using a Go webserver.

Interacting with Ethereum Smart Contracts using Go

23.07.2017 - 7m read - Go Golang ethereum blockchain smartcontracts

Smart Contracts and Blockchain remain a hot topic. This post will show how to interact with Ethereum Smart Contracts using Go.

Basic AST Traversal in Go

14.07.2017 - 6m read - Go Golang ast

Looking at and interacting with the AST (Abstract Syntax Tree) of a program can be both interesting and useful for automation. In this post, we'll look at an example of how to parse a Go program to an AST and how to analyse it.

Writing a Static Blog Generator in Go

17.06.2017 - 17m read - golang go blog static static-site-generator

Last November I decided to start writing this Blog. In order to create it, I wrote a static blog generator in Go, which is described in this post.

Syntax-Highlighting from a Markdown source using Go

09.06.2017 - 6m read - golang go syntax-highlighting markdown

This post shows one way to create syntax-highlighted HTML from a markdown source. Using only Go.

BoltDB with Storm

17.05.2017 - 6m read - golang go boltdb bolt storm

BoltDB is a simple and fast key/value store written in pure Go. Storm is a toolkit for BoltDB, which helps us tackle more complex use-cases.

Playing Around with BoltDB

20.04.2017 - 9m read - golang go boltdb bolt

Looking for a simple key/value store for your Go applications? Look no further!

Port Forwarding with Go

19.03.2017 - 5m read - Go Golang network forwarding tunnelling

In this post, I take a look at how simple it is to do port forwarding with Go's great standard library.

Implementing S3 Delta-Upload for static-aws-deploy

01.03.2017 - 7m read - Golang Go S3 deltaupload AWS tool

In this post I describe my implementation of delta-uploading for AWS S3 within the static-aws-deploy tool using Go

Simplistic Mocking in Go

18.02.2017 - 8m read - go golang testing mock

After having written many tests with several bloated mocking frameworks in different languages, this is an attempt at a very simplistic utility for mocking in Go

Basic Logistic Regression with Go

Machine Learning is rapidly becoming more and more relevant both within the field of Software Development as well as Society as a whole. This post aims to show how very basic Machine Learning techniques can look in Go

Deploying a Static Website to AWS with Go

02.01.2017 - 6m read - Golang Go deployment AWS tool

This post describes the process of building a small single-purpose tool in Go for deploying static websites to AWS S3 and Cloudfront.

Examples For Using io.Pipe in Go

15.12.2016 - 6m read - Go Golang io interface Pipe

The io.Reader and io.Writer interfaces in Go are immensely powerful, yet simple. This post explores how we can use another simple concept to create powerful effects: io.Pipe