Blog about web development and Go, recent posts:

How to Control Router Access Permissions in Go Web Apps
23 Dec 2020

How to Control Router Access Permissions in Go Web Apps

In this post I’m going to describe how can we limit user access to the specific url in golang web application. I will use chi router - a lightweight, idiomatic and composable router for building Go HTTP services.

go router chi
How to test database interactions in golang applications
22 Dec 2020

How to test database interactions in golang applications

Testing of functions with database interactions always was challenging. Recently, I found a wonderful library go-sqlmock which will simplify writing tests and mocking database queries in golang applications a lot.

go testing sql
Go middleware example. How to alter a handler result
20 Dec 2020

Go middleware example. How to alter a handler result

Let’s imagine a situation when you want to alter the result, returned by some http handler to the client. Fortunately, Golang provides an easy mechanism for that, called a middleware. I’m going to dive directly to the source code, to save your time.

go middleware
How to make Nginx cache cookie aware
15 Dec 2020

How to make Nginx cache cookie aware

In this post, I’m going to describe how we can configure nginx to be able to cache responses based on the specific cookie value.

nginx cookie
Privacy Policy
12 Feb 2020

Privacy Policy

Welcome to webdevstation.com (the “Website”). We take your privacy seriously, and we want you to know that we do not collect any personal information from our visitors. You can browse and enjoy our content without worrying about your data being collected or stored. Since we don’t collect any user data, there is no information to share, sell, or disclose to any third parties. Your visit to our Website is entirely anonymous.