Golang | News, Libraries, Apps & more
1,261 FOLLOWERS
Golang News, Libraries, Apps & more. golang News Blog for Go Dev's
Golang | News, Libraries, Apps & more
3M ago
Golang, also known as Go, has rapidly gained popularity among developers worldwide. Created by Google, this programming language combines efficiency, readability, and simplicity, making it a top choice for various applications. Here are the top 10 reasons why Golang stands out as a widely used development language:
1. Simplicity and Ease of Use
Go’s syntax is clean and concise. This simplicity makes it easy for developers to read and write code, reducing the cognitive load and making the language accessible to newcomers.
2. High Performance
Go is a compiled language, which means it translates ..read more
Golang | News, Libraries, Apps & more
10M ago
If you’re a Golang developer, you know how important having a reliable and efficient application scaffold is. That’s where Nunu comes in. Named after a character in League of Legends, Nunu is a CLI tool that helps you quickly build a Golang application using popular libraries in the Golang ecosystem.
Github: https://github.com/go-nunu/nunu
Features
Nunu comes with several features that make it a great choice for building Golang applications:
– Gin: A popular HTTP web framework
– Gorm: A powerful ORM library
– Wire: A dependency injection framework
– Viper: A configuration management libra ..read more
Golang | News, Libraries, Apps & more
1y ago
What is a Golang map? Why is it useful? How does it compare to a slice? How do you declare a map? How do you initialize a map in Go? Fear not; all these questions are answered in this friendly introduction to one of Go’s most powerful features.
Call ’em what you like—hashes, dictionaries, associative arrays, or, in the Go language, maps—this kind of data structure is familiar to every programmer:
{
'eggs': 1.75,
'bacon': 3.22,
'sausage': 1.89,
}
What is a Golang map?
Looking for a Golang Job?
The map data type is built into Golang, so we often use it. Essentially ..read more
Golang | News, Libraries, Apps & more
1y ago
Structured logging involves producing log records in a well-defined format (usually JSON), which adds a level of organization and consistency to application logs, making them easier to process. Such log records are composed of key-value pairs that capture relevant contextual information about the event being logged, such as the severity level, timestamp, source code location, user ID, or any other relevant metadata.
This article will delve deep into the world of structured logging in Go, with a specific focus on a recently accepted slog proposal which aims to bring high-performance s ..read more
Golang | News, Libraries, Apps & more
1y ago
The Framework
In my exploration of Golang, I wanted to take a deeper dive into some areas that I found interesting about the language. Though conceptually similar to the way other languages handle concurrency, I didn’t have much production-level knowledge surrounding goroutines and concurrency.
As an engineer, I have the compulsion to pull things apart and see how they work — and hopefully, gain a fundamental understanding of best practices and the contexts in which certain patterns make the most sense.
For goroutines and channels, I created an application using a Dispatcher -> Worker ..read more
Golang | News, Libraries, Apps & more
1y ago
Go’s defer keyword is a powerful tool that allows you to specify a function call to be executed later, usually after the surrounding function has returned. Although it may seem like a simple concept, the defer keyword can be used in several advanced ways to improve the efficiency and reliability of your Go code.
This post will explore ten advanced tricks for using delay in Go. From canceling events and releasing resources to printing the time a function uses and recovering from panics, these techniques will help you take your Go skills to the next level. Whether you’re a beginner who wants to ..read more
Golang | News, Libraries, Apps & more
1y ago
A new Golang hash table based on SwissTable that is faster and uses less memory than Golang’s built-in map. We’ll cover the motivation, design and implementation of this new package and give you some reasons to try it. This blog is part of our deep-dive series on the Go programming language. Past iterations include posts about concurrency, “inheritance”, and managing processes with Golang.
At DoltHub, we love Golang and have used it to build DoltDB, the first and only SQL database you can branch, diff and merge. Through our experience building Dolt, we’ve gai ..read more
Golang | News, Libraries, Apps & more
1y ago
Flipt is an open-source, self-hosted feature flag application that allows you to run experiments across services in your environment.
Flipt can be deployed within your existing infrastructure so that you don’t have to worry about your information being sent to a third party or the latency required to communicate across the internet.
Usecases
Flipt supports use cases such as:
Enabling trunk-based development workflows
Testing new features internally during development before releasing them fully in production
Ensuring overall system safety by guarding new releases with an e ..read more
Golang | News, Libraries, Apps & more
1y ago
Valgo is a type-safe, expressive, and extensible validator library for Golang. Supports localization and is built with generics.
Getting started
Install in your project:
go get github.com/cohesivestack/valgo
Import in your code:
import v github.com/cohesivestack/valgo
Note: You can use any other aliases instead of v or just reference the package valgo directly.
Using Valgo Validation session
The Validation session in Valgo is the main structure for validating one or more values. It is called ‘Validation’ in code.
A validation session will contain one or m ..read more
Golang | News, Libraries, Apps & more
1y ago
Kopia is a fast and secure open-source backup/restore tool that allows you to create encrypted snapshots of your data and save the snapshots to remote or cloud storage of your choice, to network-attached storage or server, or locally on your machine. Kopia does not ‘image’ your whole machine. Rather, Kopia allows you to backup/restore any and all files/directories that you deem important or critical.
Kopia has both CLI (command-line interface) and GUI (graphical user interface) versions, making it the perfect tool for both advanced and regular ..read more