News Articles go

Hack and Exfiltrate text files using GoLang

This article will help you to write a Golang program which will transfer files from the remote machine (victim’s machine) to your local environment(attacker’s machine). This article is mainly for education purposes and can be used for small pen-testing scenarios as well ( I have used it and it really works). We can use tools […]

#GopherDiggingRuby: Intro to blocks in Ruby

When you’re coding in Ruby, one piece of syntax you’ll see a lot of is blocks, with either the curly braces or do…end syntax. So in this tutorial, we will take a look at how we can use blocks as convenient feature of a Ruby developer’s toolbelt, and how that compares to Go. 🐼 Looping […]

How we reduced costs by switching from AWS MediaConvert to a Golang service

This article will focus mainly on the golang side of work, so if you’re interested please continue reading The problem: I’m working at a real state company. We allow our users to upload videos showing their proprieties and we used AWS MediaConvert to handle compressing and transcoding but things got out of hand. With MediaConvert […]

Bhagavad Gita API

Introduction TheAum.org presents a free, anonymous and highly available API for the Bhagavad Gita. Motivation Many existing APIs of the Gita requires you to either sign-up or get some token to perform requests. We feel like this is not something one wants when reading The Gita. Holy books and texts should be generally available and […]

Catch error when using SQLite in Golang

I was working on a project using Go and SQLite. For the driver part, I tried 2 libraries: mattn go-sqlite3 modernc.org/sqlite Below are examples to how to catch “primary key conflict” and “no row found” errors: With mattn sqlite library: import ( “database/sql” “github.com/mattn/go-sqlite3” ) var ( ErrDup = errors.New(“record already exists”) ErrNoRecord = errors.New(“record […]

Learning Go by examples: part 9 – Use HomeBrew & GoReleaser for distributing a Golang app

As we have seen in Learning Go by examples: part 8 – Automatically cross-compile & release your Go app article, we can create an app and cross-compile automatically. It’s cool but I think we can go more deeper. It’s cool to create awesome tools but it’s better to provide a way to install them easily. […]

OCSP and CRL: what could go wrong?

Read this post to learn everything to know about TLS certificate revocation protocols: OCSP and CRL. How to use OCSP and CRL for validating TLS certificates in Go apps? Even though Golang has native support for TLS, it has extremely limited support for OCSP and CRL. So, what should you do then? OCSP (Online Certificate […]

OSCP and CRL: what could go wrong?

Read this post to learn everything to know about TLS certificate revocation protocols: OCSP and CRL. How to use OCSP and CRL for validating TLS certificates in Go apps? Even though Golang has native support for TLS, it has extremely limited support for OCSP and CRL. So, what should you do then? OCSP (Online Certificate […]

Building GitHub Apps with Golang

If you’re using GitHub as your version control system of choice then GitHub Apps can be incredibly useful for many tasks including building CI/CD, managing repositories, querying statistical data and much more. In this article we will walk through the process of building such an app in Go including setting up the GitHub integration, authenticating […]

Urge to build CLIs : Gamechanger πŸš€

I will first take you to the reason and urge I have for building CLI tools and then make your hands dirty by building a CLI-based calculator with Cobra! In case you are well motivated to build CLIs, I would suggest you directly jump to the code valley. The urge to build CLIs πŸ‘¨β€πŸ’» I […]

Building a Snake Game With Fyne and Go.

How to install GO. How to install fyne. Drawing Snake and Fruit on Fyne Canvas. Adding a timer to move the snake. Using Keys to Control direction. ** 1 How to install Go** The GO can be downloaded and installed from the official Golang website https://go.dev/doc/install In this tutorial i will be using a windows […]

LeetCode – Multiply Strings

Problem statement Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Note: You must not use any built-in BigInteger library or convert the inputs to integer directly. Problem statement taken from: https://leetcode.com/problems/multiply-strings Example 1: Input: num1 = “2”, num2 = “3” Output: […]

Using BoltDB as internal database πŸ’Ύ

If you are looking for a small database for your fun project, I have something you might like. It is small, works as a key-value store and it’s pure go. What is Bolt? Bolt is a pure Go key/value store inspired by Howard Chu’s LMDB project. The goal of the project is to provide a […]

How Go handles system calls and connections when TCP server

Key takeaways With the net package, you can create a TCP server with such simple and little code (The Go playground). If the host in the address parameter is empty or a literal unspecified IP address, listen on all available unicast and anycast IP addresses of the local system. There are two kinds of DNS […]

Property-Based Testing In Go

Have you ever wanted your unit tests written for you? Property based testing is a powerful testing technique that, in a sense, is just that. You describe the properties you’d like to test, and the specific cases are generated for you. Property-based testing can be a bit trickier to learn, and not every problem can […]

Top Golang Use Cases 2022

Companies that want to increase their business productivity used Goland. Golang helps companies to modernization, maintain higher efficiency with code, and develop faster mobile apps. Today, we come up with the article of varied domains that have benefitted from the Go programming language. Let’s have quick look at these Golang use cases now. Why use […]

Cheat sheets

So I am back with my new blog 😎 and now I am telling you a secret that now I am going to start my new series of cheat sheets and in this series I am going to post cheat sheets of all (most famous languages) in parts like 3 blogs for c, c++, etc. […]

Context in Go

Go is a very pragmatic language. If there is a thing in the Go standard library, there is an actual practical reason for it. The same stays valid for Context. for impatient use to specify a deadline, timeout, or cancel the running goroutine Use Context when you need: to run a function with time limation, […]

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.