Problem I’ve written the following function which reads an authorization header, compares it and returns whether it is valid or […]

# Tag: go

## CLRS implementation (opportunity to sort subarray) of merge sort in golang

Problem I’m reading “Introduction to Algorithms” by CLRS and I can’t find an implementation of the pseudo code from the […]

## Query Select and Insert if not exists

Problem Are there any good ways to make this createIndexBlock() method shorter? It looks wastefully long. I have many tables. […]

## Change interface depending on if statement

Problem I’m using fiber and mongodb. Field “field” is needed to obtain certain data to unload the load on the […]

## Go Lang custom convert array into string with two separators

Problem This is my custom function to join strings from an array into one string. We can provide normal separator […]

## Really fast Knight’s Tour using concurrency and Goroutines

Problem In less that 5 seconds on a normal PC, I found the answer in simple brute-force. Before I met […]

## A closer look at the chat’s mumblings

Problem The Go Playground was boring so I decided to make a small application that throws me into the language. […]

## Alternate letters to UpperCase

Problem As an exercise I repeated this Java question, but in Go: Convert string to mixed case The objective is […]

## Project Euler 10: Summation of primes in Go

Problem Here is my first try at Google’s Go language, trying to solve Project Euler Problem 10: The sum of […]

## Improving my solution to the Quiz project from Gophercises in Golang

Problem I’m new to Go and I completed the first challenge from Gophercises. Any feedback would be highly appreciated. There […]