Go Design Patterns

Go Design Patterns

1h 25mIntermediate2021-07-30

Authors

Joe Marini

Joe Marini

Senior Developer Advocate at Google, Developer

Course details

Go, a multi-paradigm programming language, features design patterns that allow developers to address common problems efficiently. In this course, senior developer advocate Joe Marini covers creation, structural, and behavioral design patterns. Joe begins with an overview of design patterns and design pattern categories. Then he gives you overviews and examples of several creational patterns, including builder pattern, factory pattern, and singleton pattern. He does the same for structural patterns, covering adapter patterns and facade patterns. Joe concludes with behavioral patterns such as an observer pattern and an iterator pattern.

Skills covered

Software Design PatternsGoGoogleProgramming LanguagesSoftware DevelopmentOne-Off

Concepts

Introduction

  • Go design patterns
  • What you should know
  • Setting up the environment

Overview of Go Design Patterns

  • Design patterns in Go
  • Design pattern categories

Creational Patterns

  • Builder pattern overview
  • Builder pattern example
  • Factory pattern overview
  • Factory pattern example
  • Singleton pattern overview
  • Basic Singleton pattern example
  • Making Singleton concurrent-safe

Structural Patterns

  • Adapter pattern overview
  • Adapter pattern example
  • Facade pattern overview
  • Facade pattern example

Behavioral Patterns

  • Observer pattern overview
  • Observer pattern example
  • Iterator pattern overview
  • Iterator pattern with callback
  • Iterator pattern with interface

Conclusion

  • Next steps
40,000 Toman