Following examples to consuming a REST API by using the lib net/http. NOTE: You will find how to convert the … More

# Tag: golang

# [Algorithms] – Problem “Jumping on the Clouds” solved with go

Problem: Solution: Following the code implemented to solve it. package algoTest func JumpingOnClouds(c []int32) int { jumps :=0 i := … More

# [Algorithms] – Problem regards repeated strings solved with go

Problem: Solution: Following the code to solve the problem. package algoTest import “strings” func RepeatedString(s string, n int64) int64 { … More

# [Algorithms] – The classic Fibonacci with and without recursion in golang

What is Fibonacci? See more here What is Fibonacci formula? Fibonacci sequence, such that each number is the sum of … More

# [Algorithms] – Creating an LRUCache in golang

What is an LRUCache? The LRU means discards the least recently used items first. It means that a cache implementation … More

# [Golang] – How to generate swagger API doc from the source code

This post will explain how to do generated the documentation to be checked dynamically with the SwaggerUI and the package … More

# [Golang] – Design patterns and best practices

You are looking for design patterns examples in Golang. If yes, I’d like to share with you the following content. … More

# [Golang] – Book recommendation

If you are looking for to learn how to developing with go language and how to build web applications, then … More

# [Golang] – Code example to calc roots

To calc the root we will use here the Newton Raphson Method. In this case, Newton’s formula is to approximate Sqrt(x) by … More

# [Golang] Good Practices – Init Project

A teammate shared it and I really liked. So, following the post in order to help you too :-). Check … More