DIY Life Hacks , Fun Stuff, and Programming Blog

Golang YAML to map

How to convert a YAML file to a map[string]string in Go Use go-yamlconfigfile project to convert simple yaml config files to maps in Go. When you want to store secrets for your project, you...

Go Closures as Struct Members

How to store closures at runtime inside struct members in the Go programming language.   I will also show you how you can change the closure stored as a member inside of your struct...

Consul Service Discovery and leader election

Elect a leader with Consul for your service So I started testing out a service discovery platform called Consul by the company Hashicorp. The system uses the raft consensus protocol, and you may run...

How to split pdf into multiple files

Split pdf files into single page pdf files with this free tool Here is a quick tip on how you can split pdf files with multiple pages into single page pdf files on windows...