diff --git a/docs/9-generics.md b/9-generics.md similarity index 100% rename from docs/9-generics.md rename to 9-generics.md diff --git a/docs/chapter-1.md b/chapter-1.md similarity index 100% rename from docs/chapter-1.md rename to chapter-1.md diff --git a/docs/mistakes.md b/docs/mistakes.md index fa3f2bc..282e9a6 100644 --- a/docs/mistakes.md +++ b/docs/mistakes.md @@ -6,6 +6,8 @@ This section contains a summary of the 100 mistakes in the book. Meanwhile, it's + + ![](inside-cover.png) ## Code and Project Organization @@ -142,6 +144,8 @@ The `any` type can be helpful if there is a genuine need for accepting or return **TL;DR**: Relying on generics and type parameters can prevent writing boilerplate code to factor out elements or behaviors. However, do not use type parameters prematurely, but only when you see a concrete need for them. Otherwise, they introduce unnecessary abstractions and complexity. + + [Source code](https://github.com/teivah/100-go-mistakes/tree/master/src/02-code-project-organization/9-generics/main.go) ### Not being aware of the possible problems with type embedding (#10) diff --git a/site/404.html b/site/404.html index d923815..37a9737 100644 --- a/site/404.html +++ b/site/404.html @@ -281,44 +281,6 @@ -
  • - - - - - Being confused about when to use generics (#9) - - - - -
  • - - - - - - - - -
  • - - - - - Go: Simple to learn but hard to master - - - - -
  • - - - - - - - -
  • @@ -366,9 +328,9 @@ - + -