Skip to main content

GO Spells

Browsing 23 incantations written in go.

GO Adept
Divination
GoF Lineage: Command

The Command

Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.

#Behavioral #Divination #Go
Read Full Scroll →
GO Adept
Divination
GoF Lineage: Interpreter

The Interpreter

Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.

#Behavioral #Divination #Go
Read Full Scroll →
GO Adept
Divination
GoF Lineage: Iterator

The Iterator

Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.

#Behavioral #Divination #Go
Read Full Scroll →
GO Adept
Necromancy
GoF Lineage: Memento

The Memento

Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later.

#Behavioral #Necromancy #Go
Read Full Scroll →
GO Adept
Divination
GoF Lineage: Observer

The Observer

Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.

#Behavioral #Divination #Go
Read Full Scroll →
GO Adept
Transmutation
GoF Lineage: State

The State

Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.

#Behavioral #Transmutation #Go
Read Full Scroll →