MCPcopy Create free account

hub / github.com/crazybber/awesome-patterns / types & classes

Types & classes195 in github.com/crazybber/awesome-patterns

↓ 4 callersFuncTypeEvaluatorFunc
func(interface{}) (interface{}, error)
concurrency/subtasks/divide_and_conquer/divide_and_conquer.go:63
↓ 1 callersTypeAliasFeedLockLinkType
idiom/iota_const/main.go:5
InterfaceAbstractObserver
behavioral/observerpattern/main.go:9
InterfaceAbstractSubject
behavioral/observerpattern/main.go:13
StructAddition
behavioral/strategy/main.go:16
StructAggressiveVisitor
发起攻击的访问者
behavioral/visitor/main.go:64
StructAlbum
Album is ...
behavioral/interpreter/Album.go:9
StructAustralia
playground/benchmark/main.go:12
StructBall
concurrency/pingpong/main.go:8
StructBikeBuilder
creational/builder/builder/main.go:63
StructBingFetcher
concurrency/subtasks/fetchers/fetchers.go:32
InterfaceBuildProcess
creational/builder/builder.go:3
InterfaceBuildProcess
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
StructBuyer
buyer 之间通过中介进行引用
behavioral/mediator/main.go:16
StructCake
structural/flyweight/main.go:8
StructCakeFactory
structural/flyweight/main.go:12
InterfaceCar
creational/abstract_factory/car.go:3
StructCar
refined abstraction
structural/bridge/main.go:29
StructCar
playground/defer/main.go:37
StructCarBuilder
creational/builder/builder.go:16
StructCarBuilder
creational/builder/builder/main.go:40
StructCarFactory
creational/abstract_factory/car_factory.go:13
StructCashPM
creational/factorymethod/main.go:19
StructCat
openclose/main.go:5
StructChanBarrier
once
concurrency/barrier/n_barrier/main.go:15
StructCircle
creational/factorymethod/shape/shape.go:13
StructCommandAttack
ConcreteCommand
behavioral/command/main.go:12
StructCommandEscape
ConcreteCommand
behavioral/command/main.go:19
StructCommandInvoker
invoker
behavioral/command/main.go:42
StructCruiseMotorbike
creational/abstract_factory/cruise_motorbike.go:3
FuncTypeCruncher
func(int) int
functions/main.go:5
StructDeadState
behavioral/state/problem.go:62
StructDeadline
Deadline implements the deadline/timeout resiliency pattern.
stability/deadline/deadline.go:13
StructDealerFacade
structural/facade/main.go:35
StructDebitCardPM
creational/factorymethod/main.go:25
InterfaceDispatcher
messaging/fanout.go:68
FuncTypeDispatcherBuilder
func() Dispatcher
messaging/fanout.go:50
StructDog
playground/main.go:13
StructDog
playground/defer/main.go:45
StructDog
concurrency/subtasks/main.go:13
TypeAliasDogsList
playground/main.go:11
InterfaceDriverImplementor
implementor
structural/bridge/main.go:44
StructDuckDuckGoFetcher
concurrency/subtasks/fetchers/fetchers.go:49
StructEggShop
structural/facade/main.go:17
StructError
synchronization/waitgroup/error_handling.go:7
InterfaceEvaluator
concurrency/subtasks/divide_and_conquer/divide_and_conquer.go:59
StructEvent
Event defines an indication of a point-in-time occurrence.
behavioral/observer/main.go:12
FuncTypeExecuteStringFunc
func() (string, error)
messaging/future/future/main.go:9
StructFPSGame
behavioral/chain_of_responsibility/main.go:33
StructFPSGame
behavioral/template/main.go:20
FuncTypeFailFunc
func(error)
messaging/future/future/main.go:8
StructFamilyCar
creational/abstract_factory/family_car.go:3
StructFetchResult
concurrency/iterator/iterator_error_handling/main.go:13
InterfaceFetcher
concurrency/subtasks/fetchers/fetchers.go:10
InterfaceFetcher
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
StructFile
structural/composite/main.go:5
InterfaceGame
behavioral/chain_of_responsibility/main.go:10
InterfaceGame
behavioral/template/main.go:8
InterfaceGameCommand
command
behavioral/command/main.go:7
InterfaceGamePlayer
receiver
behavioral/command/main.go:26
StructGameRunner
behavioral/template/main.go:13
StructGameSelector
chain of responsibility
behavioral/chain_of_responsibility/main.go:16
TypeAliasGameType
behavioral/chain_of_responsibility/main.go:3
StructGoogleFetcher
concurrency/subtasks/fetchers/fetchers.go:15
StructGopherTerminal
GopherTerminal for example: Its a "huge" structure with different public methods
structural/proxy/main.go:42
StructGunPlayer
behavioral/command/main.go:31
StructHealthyState
behavioral/state/problem.go:23
InterfaceHost
如果这里有更多的新类型Host需要扩展,则不宜使用访问者模式
behavioral/visitor/main.go:10
StructHouse
concurrency/subtasks/main.go:17
InterfaceHuman
playground/benchmark/main.go:8
InterfaceIBarrier
concurrency/barrier/n_barrier/main.go:8
StructIDNotFound
IDNotFound is an error thrown when an id is not found in a Registry
behavioral/registry/registry.go:10
InterfaceITerminal
* 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
StructImage
playground/cbor/cbor2_test.go:11
StructIndustrialRobot
IndustrialRobot is kind of Robot can do some jobs
playground/mocklib/robot.go:19
StructInfoVisitor
访问者允许有不同类型的访问者 仅查看信息的访问者
behavioral/visitor/main.go:49
InterfaceInterface
synchronization/semaphore2/main.go:29
StructInterpreter
Interpreter is ...
behavioral/interpreter/Interpreter.go:15
StructItem
STARTITEM OMIT An Item is a stripped-down RSS item.
concurrency/feedreader/main.go:16
StructJob
playground/cron/cron_test.go:12
StructJob
concurrency/concurrency_in_go/main.go:11
StructJob
concurrency/concurrency_in_go/ch1/ch1.go:9
StructLeftState
behavioral/state/main.go:19
StructLogger
playground/zero_initialization/main.go:8
StructLuxuryCar
creational/abstract_factory/luxury_car.go:3
StructManufactureDirector
creational/builder/builder.go:39
StructManufacturingDirector
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
StructMaybeString
messaging/future/future/main.go:11
StructMediator
behavioral/mediator/main.go:29
FuncTypeMemoized
func(int) int
functions/fibonacci.go:5
StructMilkShop
structural/facade/main.go:23
InterfaceMotorbike
creational/abstract_factory/motorbike.go:3
StructMotorbikeFactory
creational/abstract_factory/motorbike_factory.go:13
StructMultiplication
behavioral/strategy/main.go:22
StructMyWork
workerpool/ardan_labs_worker_pool/mian.go:13
StructNPCHost
behavioral/visitor/main.go:23
StructNameAlreadyRegistered
NameAlreadyRegistered is an error thrown when a duplicate id is found durring registration
behavioral/registry/registry.go:19
InterfaceNotifier
Notifier is the instance being observed. Publisher is perhaps another decent name, but naming things is hard.
behavioral/observer/main.go:28
FuncTypeObject
func(int) int
structural/decorator/decorate.go:5
StructObjectHost
behavioral/visitor/main.go:32
next →1–100 of 195, ranked by callers