Systems | Development | Analytics | API | Testing

Go

Building a RESTful API with Go and Gin

When it comes to building an API, Go is an extremely popular programming language choice to build powerful RESTful APIs with. The language is super lightweight, has many different libraries and frameworks available, and is easy to run. One of the frameworks support by Go is Gin. Gin is a web framework written in Golang that offers great performance and scalability, amongst other features.

Integrating Keploy with Redis in Golang

In this video, we'll see how keploy has evolved. Presenting a new installation process of Keploy where the server of keploy can be installed using binary for Linux and macOS, and we can run the keploy server using the command "keploy" from the CLI. The test cases when you make an API call is reflected in the CLI where keploy is running, and the test runs details are also shown there. The test runs report is stored in yaml file format under the test-reports directory.

How to Use errors. WithMessage() in Golang

In Golang, the WithMessage() method allows you to annotate errors with an additional message. Often, error values by themselves don’t give enough context to be useful in debugging. Take, for example, Golang’s basic error handling technique: In Golang, errors are treated as values, so err contains the error value. In this situation, a developer could make use of the error package to add context to the code along with the failure path without destroying the original value of the error.

How to Wrap and Unwrap Errors in Golang

In Golang, wrapping errors means adding more contextual information to the error which has been returned. For example, the additional information could be the type of error, the cause of the error, or the name of the function where the error is raised. Wrapping is very useful for debugging since you can precisely and quickly locate the source of the problem.

Yarden Laifenfeld's talk at GopherCon Europe 2022- "From OOP to Go"

Picking up Go after mastering OOP languages often leads to common yet avoidable mistakes. The question is - how can we avoid them? Taking the example of inheritance, we will discuss how our process of thought needs to change when developing programs in Go compared to OOP languages.

Carbonated: Why Google's Enthusiasm for Go Fizzled as a C++ Successor

Developers are talking about Google’s latest creation: Carbon, a supposed wunderkind programming language that will save the technoverse from C++ and serve as its successor or replacement. Just like a rehashed Hollywood blockbuster about a supposed messiah, we’ve heard this story before. The 2000s saw more than one language try to fix C++’s minuses. The two big ones were Rust (backed by Mozilla) and Go (a.k.a. Golang, initiated by Google).

Go vs. Rust: Debugging, Memory, Speed & More

Rust and Go in some ways are polar opposites. They are defined by their respective approaches to code. Rust is scrupulous, meticulous, and demands painful attention to detail; Go is laidback by contrast, easygoing, and simple. They both prize efficiency, but one in the means (Go) and the other in the ends (Rust). A true Go vs. Rust battle needs to compare the two languages in more depth. Golang and Rust owe their births to loathing for other systems languages (and by languages, I mainly mean C++).