---
title: "Discussion on \"Mistakes Golang (book notes)\" | Hashnode"
description: "Discussion on \"Mistakes Golang (book notes)\". Introduction\nSome of my notes reading the book “100 mistakes in Golang”.\nMistakes 2 - Code and Project organization\ninit()\nThe Problem: init() functions execute in dependency order, not import order.\n// main.go imports pkgA, pkgA imports pkgB\n// Outp..."
url: "https://hashnode.com/posts/mistakes-golang-book-notes/686026d246e2c970cadf210a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mistakes Golang (book notes)](https://tigerabrodi.blog/mistakes-golang-book-notes?utm_source=hashnode&utm_medium=feed)

Introduction Some of my notes reading the book “100 mistakes in Golang”. Mistakes 2 - Code and Project organization init() The Problem: init() functions execute in dependency order, not import order. // main.go imports pkgA, pkgA imports pkgB // Outp...

Jun 28, 2025 · 31 min read · tigerabrodi.blog  
Read the article

-   [#golang](https://hashnode.com/tag/golang)

## Written by

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

@tigerabrodi · Germany

  
[View profile](https://hashnode.com/@tigerabrodi)

Obsessed with crafting software.

Just a guy who loves to write code and watch anime.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
