Category Archives: Programming

Make your bot for telegram using go

It’s really not that difficult. Here are the docs: Here is a simple library in go for telegram — (too simple, from my point of view, does not cover all functionality, but okay). And here is a skeletton for making your bots if you want it as just standalone binary —

Gitlab-ci: build go app with docker as a docker image

Preparations [TO BE UPDATED LATER] My gitlab-ci.yml

My Dockerfile

Pulling from your private registry Create deploy token as described here. After that, you can do this:

Useful links: (full description of gitlab-ci.yml) Somewhat useful: (it says to do sudo usermod -aG docker …

Read more

Free weather APIs — old, odd, but works to be discovered to be discovered to be discovered, looks abandoned works, but keys are for valid for 3 months only died (

Another cool article on using PostgreSQL+pgBouncer with go

Extremely interesting and very practical talk about problems occurring with go+pgBouncer (in Russian, sorry). And a video on that:

env-file parser for Goland

You can use env-file parser for running and debugging your app in Jetbrains’ products like Goland. It’s pretty simple and works.

Golang patterns. Worker pool

Further reading:

PgBouncer and prepared statements

In our system, we use connection pooler called PgBouncer as a proxy to PostgreSQL server. PgBouncer has two main modes Session pooling mode This mode is less performant (it’s a default mode). When a client connects, a server connection will be assigned to it for the whole duration it stays connected. So it does not …

Read more

Golang: testing http and grpc servers

HTTP server is quite easy to test — here is a nice video about it:

Count lines in git repository

Algorithms to find fastest route through network

This is a great article on that — (in russain). It tells about Dijkstra, Breadth-first, Greedy and A* algorithms. It’s all about optimization of one travel. To optimize your entire network you should try to use Aint Colony algorithm — (it’s in russian). Another link to this PDF file — aca