Tag: Golang
-
Enums in Golang: Techniques, best practices, & use cases
Posted on August 4, 2024, Level intermediate Resource Length medium
Enums provide a way to represent a set of named constants. While Go lacks a built-in enum type, developers can emulate enum-like behavior by constants/custom types. Enums play a vital role in programming languages, providing a concise and expressive way to define a set of named constants. While some languages like Java or C# offer built-in support for enums, Go takes a different approach. In Go, enums are not a native language feature, but developers have several techniques at their disposal to achieve similar functionality. By Thuoc Nguyen.
Tags programming app-development programming golang
-
Type conversion in Golang: How to convert data types in Go?
Posted on July 31, 2024, Level intermediate Resource Length long
Type conversion is the process of converting a value from one data type to another. Explicit type conversion in Go ensure compatibility between different data types.By Huy Nguyen.
Tags how-to app-development programming golang
-
Go developer survey 2023 H2 results
Posted on March 5, 2024, Level beginner Resource Length long
In August 2023, the Go team at Google conducted our bi-annual survey of Go developers. We recruited participants via a public post on the Go blog and a randomized prompt in VS Code, resulting in 4,005 responses. We primarily focused survey questions around a few topics: general sentiment and feedback about developing with Go, technology stacks used alongside Go, how developers start new Go projects, recent experiences with toolchain error messages, and understanding developer interest around ML/AI. By Todd Kulesza.
Tags programming learning code-refactoring golang app-development
-
Advanced techniques for Code optimization in Go
Posted on March 4, 2024, Level advanced Resource Length medium
Go, also known as Golang, is celebrated for its simplicity, readability, and efficiency. While the language itself encourages clean and idiomatic code, there are various advanced techniques and best practices that can significantly enhance the performance of your Go applications. In this in-depth guide, we will explore key strategies for optimizing Go code, covering a range of aspects from profiling to HTTP server optimization. By @withcodeexample.com.
Tags programming cloud code-refactoring golang app-development
-
Understanding Go package management and modules
Posted on January 27, 2024, Level intermediate Resource Length medium
Can low-code enable machine learning? Certainly. In fact, it's an excellent method for simplifying and accelerating the use of machine learning–and enabling developers without data science backgrounds to build software powered by machine learning. In this blog, I make the case for using low-code to develop machine learning apps. By Forsyth Alexander.
Tags golang how-to web-development app-development apis
-
A comprehensive guide to logging in Go with Slog
Posted on September 10, 2023, Level intermediate Resource Length long
Logging is essential for debugging and monitoring Go applications. The Go standard library provides a basic logging package, but it is not ideal for production use. There are a number of third-party logging libraries available for Go, such as Zap, Logrus, and Zerolog. By Ayooluwa Isaiah.
Tags monitoring programming microservices app-development golang
-
How to build your first web application with Go
Posted on July 19, 2023, Level intermediate Resource Length medium
One of Go's greatest strengths lies in the its suitability for developing web applications. It offers great performance out of the box, is easy to deploy, and has many of the necessary tools you need to build and deploy a scalable web service in its standard library. This tutorial will walk you through a practical example of building a web application with Go and deploying it to production. It will cover the basics of using Go's built-in HTTP server and templating language, and how to interact with external APIs. By Ayo.
Tags programming golang google web-development
-
Golang performance: Go programming language vs. other languages
Posted on July 10, 2023, Level beginner Resource Length long
Golang was first released by Google in 2009 and, and since then, has gained widespread acceptance among developers due to its simplicity, concurrency, and performance. However, many years later, Go was suddenly forgotten as many users chose other languages like Java or Python for their projects. By Vy Le.
Tags web-development golang app-development performance programming
-
How I built a simple Forex app with Telegram bots and AWS Lambda
Posted on February 6, 2023, Level intermediate Resource Length medium
This is the journey of author to create serverless solution written in Go which enabled him to be notified about best currency exchange rates for his small business. Nice one!
Tags golang bots serverless aws apis
-
Reducing Go execution tracer overhead with frame pointer unwinding
Posted on February 1, 2023, Level intermediate Resource Length medium
The Go Execution Tracer (aka runtime/trace) was designed to achieve low enough overhead to be usable on "a server in production serving live traffic". This is achieved by writing events into per-P buffers, using RDTSC for timestamps, and encoding into a relatively efficient binary format. By Felix Geisendörfer.
Tags golang programming microservices cloud performance
-
Concurrency in Go-2(Go Channels)
Posted on October 25, 2022, Level intermediate Resource Length medium
The channel acts as a pipe by which we send typed values from one Goroutine to another. It guarantees synchronization since only one Goroutine has access to a data item at any given time. The ownership of the data is passed between different Goroutine. By Neeraj Kumar.
Tags app-development programming golang performance
-
Reducing graph complexity using Go and transitive reduction
Posted on September 19, 2022, Level intermediate Resource Length medium
Directed acyclic graphs (DAGs) serve a wide variety of applications in computer science, biology, sociology, and other fields that involve complex networks. While these graphs often contain a large number of edges, some of the edges might be redundant, making computations unnecessarily expensive and the graph structure harder to understand. By Dominik Braun.
Tags apis app-development performance golang database