Operations | Monitoring | ITSM | DevOps | Cloud

Go

Go Client Library for InfluxDB 3.0

In a world driven by data, efficient time series data management is a growing concern. APIs play a significant role in automating tasks, especially in cloud-based environments. Go, with its high performance and concurrency, is quickly becoming one of the standard languages for writing cloud infrastructure and utilities for managing streams of data.

6 Golang Testing Frameworks for Every Type of Test

What do good tests look like, and do you even need a Golang testing framework? It’s a loaded question with an open answer. Not only do tests help ensure that your code will work as intended, but good tests can also serve as documentation for your codebase, making it easier to update and maintain in the future, while accelerating and streamlining your software development process. In this article, we outline 6 Golang testing frameworks for every type of test.

Golang Wrapper: Dependency Wrapping, in Go

All but the simplest applications borrow code. You could write everything yourself from just core language features but who has time for that? Instead you take on dependencies, pieces of code written by others that usually give us 80% or more of what we need with 20% of the effort. Sometimes these dependencies are made to interact with a specific technology like a database, or perhaps it’s just a library providing some feature that would be onerous to write yourself.

How to spot and fix memory leaks in Go

A memory leak is a faulty condition where a program fails to free up memory it no longer needs. If left unaddressed, memory leaks result in ever-increasing memory usage, which in turn can lead to degraded performance, system instability, and application crashes. Most modern programming languages include a built-in mechanism to protect against this problem, with garbage collection being the most common. Go has a garbage collector (GC) that does a very good job of managing memory.

Testing Golang with httptest

Go, often referred to as Golang, is a popular programming language built by Google. Its design and structure help you write efficient, reliable, and high-performing programs. Often used for web servers and rest APIs, Go offers the same performance as other low-level languages like C++ while also making sure the language itself is easy to understand with a good development experience.

Mastering Golang Mocks for Efficient Testing and Improved Code Quality

Although GoMock is one of the most popular ways to create mocks in Golang, it’s important to understand the broader landscape of mocking methods in the language to fully leverage its potential value in testing. Mocking is a powerful technique that allows developers to isolate their code, improve test reliability, and ultimately enhance overall code quality.

Crafting the Best Golang Developer Environments

Go is an open-source programming language and developer environment from Google that allows for incredibly efficient and powerful applications. Go’s expressive syntax enables developers to write clean, efficient, concise code, allowing faster development cycles and easier maintenance. Whether you’re developing complex distributed systems or lightweight microservices, Go and its powerful libraries provide the tools necessary to create robust and scalable solutions.

Save up to 14 percent CPU with continuous profile-guided optimization for Go

We are excited to release our tooling for continuous profile-guided optimization (PGO) for Go. You can now reduce the CPU usage of your Go services by up to 14 percent by adding the following one line before the go build step in your CI pipeline: You will also need to supply a DD_API_KEY and a DD_APP_KEY in your environment. Please check our documentation for more details on setting this up securely.

Go fixes its 7th code execution bug in the same feature

If there’s one Go programming language feature that just doesn’t seem to catch a break when it comes to security, it’s the CFLAGS and LDFLAGS handling in cgo. This is a feature that lets parts of Go source code control the compiler and linker flags that are used to build that same code.