Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crazybber/awesome-patterns
/ types & classes
Types & classes
195 in github.com/crazybber/awesome-patterns
⨍
Functions
583
◇
Types & classes
195
↓ 4 callers
FuncType
EvaluatorFunc
func(interface{}) (interface{}, error)
concurrency/subtasks/divide_and_conquer/divide_and_conquer.go:63
↓ 1 callers
TypeAlias
FeedLockLinkType
idiom/iota_const/main.go:5
Interface
AbstractObserver
behavioral/observerpattern/main.go:9
Interface
AbstractSubject
behavioral/observerpattern/main.go:13
Struct
Addition
behavioral/strategy/main.go:16
Struct
AggressiveVisitor
发起攻击的访问者
behavioral/visitor/main.go:64
Struct
Album
Album is ...
behavioral/interpreter/Album.go:9
Struct
Australia
playground/benchmark/main.go:12
Struct
Ball
concurrency/pingpong/main.go:8
Struct
BikeBuilder
creational/builder/builder/main.go:63
Struct
BingFetcher
concurrency/subtasks/fetchers/fetchers.go:32
Interface
BuildProcess
creational/builder/builder.go:3
Interface
BuildProcess
Builder design pattern tried to 1. Abstract complex creations so that object creation is seperated from object user. 2. Create an object step by step
creational/builder/builder/main.go:12
Struct
Buyer
buyer 之间通过中介进行引用
behavioral/mediator/main.go:16
Struct
Cake
structural/flyweight/main.go:8
Struct
CakeFactory
structural/flyweight/main.go:12
Interface
Car
creational/abstract_factory/car.go:3
Struct
Car
refined abstraction
structural/bridge/main.go:29
Struct
Car
playground/defer/main.go:37
Struct
CarBuilder
creational/builder/builder.go:16
Struct
CarBuilder
creational/builder/builder/main.go:40
Struct
CarFactory
creational/abstract_factory/car_factory.go:13
Struct
CashPM
creational/factorymethod/main.go:19
Struct
Cat
openclose/main.go:5
Struct
ChanBarrier
once
concurrency/barrier/n_barrier/main.go:15
Struct
Circle
creational/factorymethod/shape/shape.go:13
Struct
CommandAttack
ConcreteCommand
behavioral/command/main.go:12
Struct
CommandEscape
ConcreteCommand
behavioral/command/main.go:19
Struct
CommandInvoker
invoker
behavioral/command/main.go:42
Struct
CruiseMotorbike
creational/abstract_factory/cruise_motorbike.go:3
FuncType
Cruncher
func(int) int
functions/main.go:5
Struct
DeadState
behavioral/state/problem.go:62
Struct
Deadline
Deadline implements the deadline/timeout resiliency pattern.
stability/deadline/deadline.go:13
Struct
DealerFacade
structural/facade/main.go:35
Struct
DebitCardPM
creational/factorymethod/main.go:25
Interface
Dispatcher
messaging/fanout.go:68
FuncType
DispatcherBuilder
func() Dispatcher
messaging/fanout.go:50
Struct
Dog
playground/main.go:13
Struct
Dog
playground/defer/main.go:45
Struct
Dog
concurrency/subtasks/main.go:13
TypeAlias
DogsList
playground/main.go:11
Interface
DriverImplementor
implementor
structural/bridge/main.go:44
Struct
DuckDuckGoFetcher
concurrency/subtasks/fetchers/fetchers.go:49
Struct
EggShop
structural/facade/main.go:17
Struct
Error
synchronization/waitgroup/error_handling.go:7
Interface
Evaluator
concurrency/subtasks/divide_and_conquer/divide_and_conquer.go:59
Struct
Event
Event defines an indication of a point-in-time occurrence.
behavioral/observer/main.go:12
FuncType
ExecuteStringFunc
func() (string, error)
messaging/future/future/main.go:9
Struct
FPSGame
behavioral/chain_of_responsibility/main.go:33
Struct
FPSGame
behavioral/template/main.go:20
FuncType
FailFunc
func(error)
messaging/future/future/main.go:8
Struct
FamilyCar
creational/abstract_factory/family_car.go:3
Struct
FetchResult
concurrency/iterator/iterator_error_handling/main.go:13
Interface
Fetcher
concurrency/subtasks/fetchers/fetchers.go:10
Interface
Fetcher
STOPITEM OMIT STARTFETCHER OMIT A Fetcher fetches Items and returns the time when the next fetch should be attempted. On failure, Fetch returns a non
concurrency/feedreader/main.go:23
Struct
File
structural/composite/main.go:5
Interface
Game
behavioral/chain_of_responsibility/main.go:10
Interface
Game
behavioral/template/main.go:8
Interface
GameCommand
command
behavioral/command/main.go:7
Interface
GamePlayer
receiver
behavioral/command/main.go:26
Struct
GameRunner
behavioral/template/main.go:13
Struct
GameSelector
chain of responsibility
behavioral/chain_of_responsibility/main.go:16
TypeAlias
GameType
behavioral/chain_of_responsibility/main.go:3
Struct
GoogleFetcher
concurrency/subtasks/fetchers/fetchers.go:15
Struct
GopherTerminal
GopherTerminal for example: Its a "huge" structure with different public methods
structural/proxy/main.go:42
Struct
GunPlayer
behavioral/command/main.go:31
Struct
HealthyState
behavioral/state/problem.go:23
Interface
Host
如果这里有更多的新类型Host需要扩展,则不宜使用访问者模式
behavioral/visitor/main.go:10
Struct
House
concurrency/subtasks/main.go:17
Interface
Human
playground/benchmark/main.go:8
Interface
IBarrier
concurrency/barrier/n_barrier/main.go:8
Struct
IDNotFound
IDNotFound is an error thrown when an id is not found in a Registry
behavioral/registry/registry.go:10
Interface
ITerminal
* From that it's can be different terminals realizations with different methods, propertys, yda yda... */ ITerminal is interface, it's a public metho
structural/proxy/main.go:36
Struct
Image
playground/cbor/cbor2_test.go:11
Struct
IndustrialRobot
IndustrialRobot is kind of Robot can do some jobs
playground/mocklib/robot.go:19
Struct
InfoVisitor
访问者允许有不同类型的访问者 仅查看信息的访问者
behavioral/visitor/main.go:49
Interface
Interface
synchronization/semaphore2/main.go:29
Struct
Interpreter
Interpreter is ...
behavioral/interpreter/Interpreter.go:15
Struct
Item
STARTITEM OMIT An Item is a stripped-down RSS item.
concurrency/feedreader/main.go:16
Struct
Job
playground/cron/cron_test.go:12
Struct
Job
concurrency/concurrency_in_go/main.go:11
Struct
Job
concurrency/concurrency_in_go/ch1/ch1.go:9
Struct
LeftState
behavioral/state/main.go:19
Struct
Logger
playground/zero_initialization/main.go:8
Struct
LuxuryCar
creational/abstract_factory/luxury_car.go:3
Struct
ManufactureDirector
creational/builder/builder.go:39
Struct
ManufacturingDirector
ManufacturingDirector is the one that in charge of accepting builders. It has a Construct method that will use builder that is stored in Manufacturing
creational/builder/builder/main.go:28
Struct
MaybeString
messaging/future/future/main.go:11
Struct
Mediator
behavioral/mediator/main.go:29
FuncType
Memoized
func(int) int
functions/fibonacci.go:5
Struct
MilkShop
structural/facade/main.go:23
Interface
Motorbike
creational/abstract_factory/motorbike.go:3
Struct
MotorbikeFactory
creational/abstract_factory/motorbike_factory.go:13
Struct
Multiplication
behavioral/strategy/main.go:22
Struct
MyWork
workerpool/ardan_labs_worker_pool/mian.go:13
Struct
NPCHost
behavioral/visitor/main.go:23
Struct
NameAlreadyRegistered
NameAlreadyRegistered is an error thrown when a duplicate id is found durring registration
behavioral/registry/registry.go:19
Interface
Notifier
Notifier is the instance being observed. Publisher is perhaps another decent name, but naming things is hard.
behavioral/observer/main.go:28
FuncType
Object
func(int) int
structural/decorator/decorate.go:5
Struct
ObjectHost
behavioral/visitor/main.go:32
next →
1–100 of 195, ranked by callers