In this article we explre how to build a server in go that has Logging, tracing heath check and Graceful shutdowns from scratch with the standard library.
Zap is a high-performance library for Go that offers a fast and efficient way to log messages in Go applications. It is a structured logger, which means that it logs messages in a format, such as JSON, which can be easily parsed by other tools. With its fast performance, it allows simple logging without impacting the performance of your application.
Learn how to pretty-print JSON data in Go using the `MarshalIndent`, `json.Indent`, and `NewEncoder.SetIndent` methods.
A byte is an unsigned integer that represents a single byte of data it is represented by the `uint8` type. By convention a byte is represented by the `byte` keyword.
Learn how to manipulate strings in Go. This article covers creating strings, multiline strings, string manipulation, and more.