Skip to content

Glossary: Software Design Patterns in Go

Prototype

Also written: prototype pattern

A pattern that makes new values by copying a ready-made one and changing a little. In Go, assigning a struct copies it, so Bloom Café's weekly template can be copied and tweaked into a holiday order.

Where the book teaches it

Related terms

Shallow copyCreational pattern