Measure performance changes with benchcmp

go test -bench=. Go has a great option to write your benchmarks and run it together with go test with option -bench. To create a benchmark function you must do the following:

Supported Go types for gomobile bind

gomobile bind With gomobile we can generate language bindings that make it possible to call Go functions from Java. And it’s awesome. Now you can write Android applications in Go (unfortunately without UI features and with pure SDK coverage, but I hope it will grow up from...

Dining Philosophers

Ever since starting the series, I’ve been looking forward to this particular post. The Wikipedia entry describes the problem as follows: Five silent philosophers sit at a round table with bowls of spaghetti. Forks are placed between each pair of adjacent philosophers. Each...

Go-client for PayPal API

Clients in Go There are official SDK libraries for PHP, Java and Python, but our service is written in GO, and in this case SDK search mostly fails.

About

I am a backend engineer with a passion for APIs, Web, Cloud, Microservices, DevOps, Kubernetes etc.

Welcome to Alex Pliutau's blog

Let me introduce myself I started my blogging with Russian content at plutov.

Readers-writers

After a weeks-long hiatus around the end of last year, I’m back to the regular once-a-week schedule. The next stop in the “classical problems” chapter of “The Little Book of Semaphores” is called the “readers-writers” problem. The book de...

2015 Year in Review

Looking back on 2015 has humbled us here at Gopher Academy. What an amazing year we’ve had. Let’s review some of the highlights: We’ve published dozens of community-written articles.

2D Game Libraries for Go

By now, we all know that Go is a great language for writing servers and command line tools. But what about games? Can you make desktop, web, or mobile games in Go too?

etcd: distributed key-value store with grpc/http2

What is etcd? etcd is a distributed, consistent key-value store, written in Go. Similar to how Linux distributions typically use /etc to store local configuration data, etcd can be thought of as a reliable store for distributed configuration data.