Add a Watermark to the image with image go package

Go is very rich for packages support. But I also can say that Go is a perfect language to write almost everything with help of stdlib only.

Perfect func main()

It’s the only one function all Go commands must have. You may say that everyone’s main() function is different, depends on a project.

Always leave the campground cleaner than you found it

Application Focused API Design

“I think it’s ok to do heinous stuff to test an API if it makes it more usable by others.” - Nate Finch Prelude If you are new to Go, it might help to read these posts first before continuing on with this post. https://www.ardanlabs.com/blog/2014/05/methods-interfaces-a...

From Zero to Staging and Back

Deliver my data, Mr. Json!

JSON is the lingua franca of exchanging data over the net and between applications written in different programming languages. In this article, we create a tiny JSON client/server app in Go.

Using contexts to avoid leaking goroutines

The context package makes it possible to manage a chain of calls within the same call path by signaling context’s Done channel. In this article, we will examine how to use the context package to avoid leaking goroutines. Assume, you have a function that starts a goroutine i...

Avoid Interface Pollution

Introduction Interfaces should only be used when their added value is clear. I see too many packages that declare interfaces unnecessarily, sometimes just for the sake of using interfaces. The use of interfaces when they are not necessary is called interface pollution. This is a...

The Myth of the Root Cause: How Complex Web Systems Fail (Scalyr)

The Power of Less Code