Go-Design-Patterns

module
v0.0.0-...-90d71dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: MIT

README

Go Design Patterns

Dependabot Updates build lint test codeql coverage

This is the code repository for Go Design Patterns, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

This book will take you through the history of concurrency, how Go utilizes it, how Go differs from other languages, and the features and structures of Go's concurrency core. Each step of the way, the book will present real, usable examples with detailed descriptions of the methodologies used. By the end, you will feel comfortable designing a safe, data-consistent, high-performance concurrent application in Go.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The code will look like the following:

package main

func main() {
  ten := 10
  if ten == 20 {
    println("This shouldn't be printed as 10 isn't equal to 20")
  } else {
    println("Ten is not equals to 20")
  }
}

Most of the chapters in this book are written following a simple TDD approach, here the requirements are written first, followed by some unit tests and finally the code that satisfies those requirements. We will use only tools that comes with the standard library of Go as a way to better understand the language and its possibilities. This idea is key to follow the book and understanding the way that Go solves problems, especially in distributed systems and concurrent applications.

Suggestions and Feedback

Click here if you have any feedback or suggestions.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost. Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781786466204

Directories

Path Synopsis
Chapter01
flow_control command
golint command
hello_world command
interfaces command
structs command
testing/sum command
Chapter02
Chapter03
adapter/server command
Chapter05
Chapter06
memento/example command
Chapter07
state/example1 command
state/example2 command
visitor/example command
Chapter08
08_01 command
08_02 command
08_03 command
08_04 command
08_05 command
08_06 command
08_07 command
08_08 command
08_09 command
08_10 command
08_11 command
08_12 command
08_13 command
08_14 command
08_15 command
Chapter09
Chapter10
memory1 command
memory2 command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL