MCPcopy Create free account

hub / github.com/camilaleniss/design-patterns-go / types & classes

Types & classes174 in github.com/camilaleniss/design-patterns-go

TypeAliasAction
4-behavioural/command/main.go:40
TypeAliasAction
4-behavioural/command/composite-command/main.go:35
StructAdditionExpression
4-behavioural/visitor/classic/main.go:27
StructAdditionExpression
4-behavioural/visitor/reflective/main.go:16
StructAdditionExpression
4-behavioural/visitor/intrusive/main.go:22
StructAddress
2-creational/prototype/serialization/main.go:9
StructAddress
2-creational/prototype/factory/main.go:9
StructAddress
2-creational/prototype/deep-copy/main.go:7
StructAddress
2-creational/prototype/copy-method/main.go:5
StructAndSpecification
1-solid-principles/open-closed/main.go:97
TypeAliasArgument
command query separation, Mediator, Chain of responsibility and Observer in a sigle example
4-behavioural/chain-of-responsibility/broker-chain/main.go:11
StructBankAccount
4-behavioural/memento/main.go:20
StructBankAccount
4-behavioural/memento/undo-redo/main.go:9
StructBankAccount
4-behavioural/command/main.go:14
StructBankAccount
4-behavioural/command/composite-command/main.go:7
StructBankAccount
4-behavioural/command/functional/main.go:5
StructBankAccountCommand
to know if a which command will be run and if succedeed
4-behavioural/command/main.go:48
StructBankAccountCommand
4-behavioural/command/composite-command/main.go:42
StructBaseState
base state allows us if no transition it's set
4-behavioural/state/main.go:34
StructBetterFilter
1-solid-principles/open-closed/main.go:106
StructBetterFormattedText
3-structural/flyweight/text-formatting-example/main.go:53
StructBinaryOperation
4-behavioural/interpreter/main.go:39
StructBinaryTree
actually the tree that will have the nodes
4-behavioural/iterator/tree-transversal/main.go:74
StructBitmap
3-structural/proxy/virtual-proxy/main.go:10
StructBuffer
Facade Exposing several components through a single interface basic struct
3-structural/facade/main.go:9
StructCar
3-structural/proxy/protection-proxy/main.go:10
StructCarProxy
this can also be called 'secureCar' or something like that
3-structural/proxy/protection-proxy/main.go:22
StructChatRoom
actually the mediator
4-behavioural/mediator/main.go:33
StructCircle
3-structural/decorator/main.go:16
StructCircle
has a renderer, and you can define it as you want
3-structural/bridge/main.go:36
TypeAliasColor
1-solid-principles/open-closed/main.go:5
StructColorSpecification
1-solid-principles/open-closed/main.go:81
StructColoredShape
more generic c:
3-structural/decorator/main.go:44
StructColoredSquare
possible, but not generic enough
3-structural/decorator/main.go:38
InterfaceCommand
to actually call or undo the methods
4-behavioural/command/main.go:35
InterfaceCommand
4-behavioural/command/composite-command/main.go:27
StructCompositeBankAccountCommand
group commands
4-behavioural/command/composite-command/main.go:81
StructConsole
a facade over buffers and viewports
3-structural/facade/main.go:38
StructCreature
4-behavioural/chain-of-responsibility/broker-chain/main.go:62
StructCreature
4-behavioural/chain-of-responsibility/method-chain/main.go:5
StructCreatureModifier
data common to all modifiers
4-behavioural/chain-of-responsibility/broker-chain/main.go:93
StructCreatureModifier
actually the struct that will point to a creature
4-behavioural/chain-of-responsibility/method-chain/main.go:26
InterfaceDatabase
Singleton When we only want a module to be instantied one think of a module as a singleton
2-creational/singleton/main.go:15
StructDoctorService
4-behavioural/observer/main.go:64
StructDocument
1-solid-principles/interface-segregation/main.go:3
StructDoubleAttackModifier
4-behavioural/chain-of-responsibility/broker-chain/main.go:102
StructDoubleAttackModifier
aggregates the CreatureModifier
4-behavioural/chain-of-responsibility/method-chain/main.go:53
StructDoubleExpression
4-behavioural/visitor/classic/main.go:18
StructDoubleExpression
4-behavioural/visitor/reflective/main.go:12
StructDoubleExpression
let's call this number... or something
4-behavioural/visitor/intrusive/main.go:13
InterfaceDriven
base interface
3-structural/proxy/protection-proxy/main.go:6
StructDriver
3-structural/proxy/protection-proxy/main.go:17
StructDummyDatabase
2-creational/singleton/main.go:106
StructElectrocalRoll
4-behavioural/observer/property-dependencies/main.go:73
InterfaceElement
4-behavioural/interpreter/main.go:16
StructEmailBuilder
2-creational/builder/parameter/main.go:9
StructEmployee
2-creational/factories/generator/main.go:5
StructEmployee
imagine a wide types of employees with default values to be set
2-creational/factories/prototype/main.go:7
StructEmployee
2-creational/prototype/factory/main.go:14
StructEmployeeFactory
structural approach
2-creational/factories/generator/main.go:21
InterfaceExpression
the accept method allows us to visit the type that we want
4-behavioural/visitor/classic/main.go:14
InterfaceExpression
4-behavioural/visitor/reflective/main.go:8
InterfaceExpression
4-behavioural/visitor/intrusive/main.go:8
StructExpressionPrinter
has the builder
4-behavioural/visitor/classic/main.go:37
InterfaceExpressionVisitor
4-behavioural/visitor/classic/main.go:8
StructFilter
let's say we have a store and want to filter our products
1-solid-principles/open-closed/main.go:28
StructFormattedText
this example focuses more in understanding the fundamentals the how to this is the unefficient way to do this
3-structural/flyweight/text-formatting-example/main.go:13
InterfaceGame
4-behavioural/template-method/main.go:16
StructGame
has its observers
4-behavioural/chain-of-responsibility/broker-chain/main.go:39
StructGraphicObject
this is our basic object
3-structural/composite/drawing-example/main.go:9
StructHtmlBuilder
actually the builder
2-creational/builder/basic/main.go:48
StructHtmlElement
this is our root element
2-creational/builder/basic/main.go:17
StructHtmlListStrategy
4-behavioural/strategy/main.go:48
InterfaceImage
base interface
3-structural/proxy/virtual-proxy/main.go:6
StructInOrderIterator
4-behavioural/iterator/tree-transversal/main.go:22
StructIncreasedDefenseModifier
4-behavioural/chain-of-responsibility/method-chain/main.go:63
StructInfo
1-solid-principles/dependency-inversion/main.go:22
StructInteger
4-behavioural/interpreter/main.go:20
StructJournal
1-solid-principles/single-responsibility/main.go:12
StructLazyBitmap
lazyBitmap allows us to load the image when we need
3-structural/proxy/virtual-proxy/main.go:31
StructLine
3-structural/adapter/main.go:22
InterfaceListStrategy
the strategy interfacce, implementation give us the well-defined path to follow
4-behavioural/strategy/main.go:27
InterfaceMachine
this interface has three methods and force everyone that uses it to implement them
1-solid-principles/interface-segregation/main.go:7
StructMarkdownListStrategy
4-behavioural/strategy/main.go:33
StructMemento
the snapshot
4-behavioural/memento/main.go:16
StructMemento
4-behavioural/memento/undo-redo/main.go:5
InterfaceModifier
this will be our controller func
4-behavioural/chain-of-responsibility/method-chain/main.go:20
StructMoneyTransferCommand
4-behavioural/command/composite-command/main.go:117
InterfaceMultiFunctionDevice
1-solid-principles/interface-segregation/main.go:76
StructMultiFunctionMachine
interface combination + decorator
1-solid-principles/interface-segregation/main.go:82
StructMultiFunctionPrinter
ok if you need a multifunction device
1-solid-principles/interface-segregation/main.go:14
StructMyPrinter
printer only
1-solid-principles/interface-segregation/main.go:57
StructNeuron
basic struct
3-structural/composite/neural-network-example/main.go:9
InterfaceNeuronInterface
as long as it's implemented we can sum them up together
3-structural/composite/neural-network-example/main.go:4
StructNeuronLayer
the different one
3-structural/composite/neural-network-example/main.go:24
StructNoBonusesModifier
4-behavioural/chain-of-responsibility/method-chain/main.go:92
StructNode
4-behavioural/iterator/tree-transversal/main.go:5
InterfaceObservable
to be able to subscribe and unsubscribe
4-behavioural/chain-of-responsibility/broker-chain/main.go:32
StructObservable
the object that will have the subscribers and will notify them
4-behavioural/observer/main.go:16
StructObservable
4-behavioural/observer/property-dependencies/main.go:8
next →1–100 of 174, ranked by callers