Best of Awesome GoSeptember 2024

  1. 1
    Article
    Avatar of awegoAwesome Go·2y

    The differences between "Type Alias" and "New Types" in Go

    Learn the differences between type aliases and new type declarations in Go. A type alias serves as a nickname for an existing type, ensuring full compatibility without the need for type conversions. In contrast, new type declarations create entirely new types that require explicit conversions and can add domain-specific methods for enhanced type safety. Make informed decisions between the two based on your code's needs for refactoring or creating domain-specific logic.

  2. 2
    Article
    Avatar of awegoAwesome Go·2y

    Go long by generating PDFs in Golang with Maroto

    Golang, known for its performance and efficiency, is an excellent choice for generating PDFs at scale, using the Maroto library inspired by Bootstrap’s layout system. Maroto simplifies layout management with rows and columns, supports various elements like text, images, and QR codes, and handles automatic page breaks. The guide provides step-by-step instructions to create dynamic PDFs, including project initialization, dependency installation, and building elements like headers, bodies, and footers.