Best of Awesome GoNovember 2024

  1. 1
    Article
    Avatar of awegoAwesome Go·1y

    Mastering Modern APIs with Go: From Basics to Best Practices🌐💻🚀

    APIs are crucial for modern software development, acting as intermediaries that allow different systems to communicate. This guide explores how to build and consume APIs using Go, highlighting key concepts such as endpoints, HTTP methods, and data formats. It also provides best practices for error handling, security, and rate limiting and includes practical steps for setting up, writing, and testing API code in Go.

  2. 2
    Article
    Avatar of awegoAwesome Go·2y

    fmt.Sprintf vs String Concat

    String concatenation in Go is significantly faster than using fmt.Sprintf for formatting, particularly in performance-critical applications such as local server queries. This post explains the performance benefits with benchmarks, discusses how fmt.Sprintf works internally, and explores why string concatenation is more efficient. The author suggests opting for string concatenation in performance-sensitive paths to achieve noticeable improvements.