MCPcopy Create free account

hub / github.com/crazybber/awesome-patterns / functions

Functions583 in github.com/crazybber/awesome-patterns

MethodFetch
(url string)
concurrency/subtasks/fetchers/fetchers.go:53
MethodFetch
()
concurrency/feedreader/main.go:513
MethodFetch
()
concurrency/feedreader/main.go:560
MethodGet
(id string)
behavioral/registry/registry.go:61
MethodGetFav
()
behavioral/observerpattern/main.go:58
MethodGetMotorbikeType
()
creational/abstract_factory/sport_motorbike.go:13
MethodGetMotorbikeType
()
creational/abstract_factory/motorbike.go:4
MethodGetMotorbikeType
()
creational/abstract_factory/cruise_motorbike.go:13
MethodGetName
()
playground/main.go:17
MethodGetName
()
concurrency/subtasks/fetchers/fetchers.go:24
MethodGetName
()
concurrency/subtasks/fetchers/fetchers.go:41
MethodGetName
()
concurrency/subtasks/fetchers/fetchers.go:58
FunctionGetShape
(shape string)
creational/factorymethod/shape/shape.go:34
FunctionGetSingletonObject
()
creational/singleton/singleton/internal/singleton.go:21
MethodGetVehicle
()
creational/builder/builder.go:7
MethodGetVehicle
()
creational/builder/builder.go:35
MethodGetVehicle
()
creational/builder/builder/main.go:16
MethodHeal
(p *Player)
behavioral/state/problem.go:25
MethodHeal
(p *Player)
behavioral/state/problem.go:41
MethodHeal
(P *Player)
behavioral/state/problem.go:64
MethodHealPlayer
()
behavioral/state/problem.go:77
MethodHurt
(p *Player ,dmg int)
behavioral/state/problem.go:29
MethodHurt
(p *Player ,dmg int)
behavioral/state/problem.go:53
MethodHurt
(P *Player ,dmg int)
behavioral/state/problem.go:68
MethodHurtPlayer
(damage int)
behavioral/state/problem.go:81
MethodLiftLeftSide
(S *Seesaw)
behavioral/state/main.go:21
MethodLiftLeftSide
(S *Seesaw)
behavioral/state/main.go:32
MethodLiftRightSide
(S *Seesaw)
behavioral/state/main.go:25
MethodLiftRightSide
(S *Seesaw)
behavioral/state/main.go:37
MethodMaxSpeed
()
structural/bridge/main.go:24
MethodMaxSpeed
()
structural/bridge/main.go:39
FunctionNaiveDedupe
STOPMERGECLOSE OMIT NaiveDedupe converts a stream of Items that may contain duplicates into one that doesn't.
concurrency/feedreader/main.go:417
FunctionNaiveMerge
STARTNAIVEMERGE OMIT
concurrency/feedreader/main.go:319
MethodName
()
concurrency/subtasks/divide_and_conquer/divide_and_conquer.go:69
FunctionNew
New returns a new Registry interface
behavioral/registry/registry.go:97
FunctionNewPipeline
(d DispatcherBuilder, idle uint32, debug bool)
messaging/fanout.go:52
MethodNewVehicle
(v int)
creational/abstract_factory/motorbike_factory.go:15
MethodNewVehicle
(v int)
creational/abstract_factory/car_factory.go:15
MethodNotify
()
behavioral/observerpattern/main.go:16
MethodNumDoors
()
creational/abstract_factory/luxury_car.go:5
MethodNumDoors
()
creational/abstract_factory/family_car.go:5
MethodNumSeats
()
creational/abstract_factory/sport_motorbike.go:9
MethodNumSeats
()
creational/abstract_factory/cruise_motorbike.go:9
MethodNumSeats
()
creational/abstract_factory/luxury_car.go:13
MethodNumSeats
()
creational/abstract_factory/family_car.go:13
MethodNumWheels
()
creational/abstract_factory/sport_motorbike.go:5
MethodNumWheels
()
creational/abstract_factory/cruise_motorbike.go:5
MethodNumWheels
()
creational/abstract_factory/luxury_car.go:9
MethodNumWheels
()
creational/abstract_factory/family_car.go:9
MethodOnEnd
()
behavioral/template/main.go:26
MethodOnEnd
()
behavioral/template/main.go:36
MethodOnNotify
(e Event)
behavioral/observer/main.go:54
MethodOnStart
()
behavioral/template/main.go:22
MethodOnStart
()
behavioral/template/main.go:32
MethodPay
(amount float32)
creational/factorymethod/main.go:21
MethodPay
(amount float32)
creational/factorymethod/main.go:27
MethodPop
()
playground/generic_data_structure/main.go:21
FunctionPresentation
(human ...Human)
playground/benchmark/main.go:34
MethodPrune
Prune removes nil entries from the registry
behavioral/registry/registry.go:39
MethodPrune
()
behavioral/registry/registry.go:68
MethodRegister
Register adds an item to the registry and returns an identifying string
behavioral/registry/registry.go:42
MethodRegister
(data interface{})
behavioral/registry/registry.go:76
MethodRegister
Register allows an instance to register itself to listen/observe events.
behavioral/observer/main.go:31
MethodRegisterName
RegisterName adds an item to the registry under the suppplied identifier and returns an identifying string Returns a NameAlreadyRegistered error if th
behavioral/registry/registry.go:46
MethodRegisterName
(data interface{}, identifier string)
behavioral/registry/registry.go:88
MethodRelease
Release place a new resource into the pool. After a resource is acquired and no longer needed, it must be released back into the pool. This is where t
workerpool/pool/main.go:79
MethodRelease
()
synchronization/semaphore2/main.go:48
FunctionRun
()
concurrency/concurrency_in_go/ch1/ch1.go:23
MethodRun
Run runs the given function, passing it a stopper channel. If the deadline passes before the function finishes executing, Run returns ErrTimeOut to th
stability/deadline/deadline.go:30
MethodRun
()
structural/bridge/main.go:19
MethodRun
()
structural/bridge/main.go:34
MethodRun
()
playground/cron/cron_test.go:17
MethodRun
Run submits work to the pool. This method is used to submit work into the pool. It accepts an interface value of type Worker and sends that value thro
concurrency/worker_unbuffed/main.go:68
MethodRun
Run runs a Task and does appropriate accounting via a given sync.WorkGroup.
workerpool/main.go:30
FunctionRunDivideAndConquer
https://medium.com/capital-one-developers/buffered-channels-in-go-what-are-they-good-for-43703871828 One common pattern for goroutines is fan-out. Whe
concurrency/subtasks/divide_and_conquer/divide_and_conquer.go:20
FunctionRunFetchers
()
concurrency/subtasks/fetchers/fetchers.go:103
FunctionRunLetter
()
concurrency/concurrency_in_go/ch1/letter_channel_example.go:34
FunctionRunSpider
()
concurrency/concurrency_in_go/ch1/spider.go:73
MethodSayHi
()
creational/singleton/singleton/internal/singleton.go:12
MethodSayHi
()
playground/mocklib/robot.go:14
MethodSayHi
()
playground/mocklib/robot.go:22
MethodSayHi
SayHi provides a mock function with given fields:
playground/mocklib/mocks/Robot.go:13
MethodSell
()
structural/facade/main.go:19
MethodSell
()
structural/facade/main.go:25
MethodSell
()
structural/facade/main.go:31
MethodSetBuilder
(b BuildProcess)
creational/builder/builder.go:43
MethodSetOutput
(out *os.File)
playground/zero_initialization/main.go:20
MethodSetSeats
()
creational/builder/builder.go:5
MethodSetSeats
()
creational/builder/builder.go:25
MethodSetSeats
()
creational/builder/builder/main.go:49
MethodSetSeats
()
creational/builder/builder/main.go:72
MethodSetStructure
()
creational/builder/builder.go:6
MethodSetStructure
()
creational/builder/builder.go:30
MethodSetStructure
()
creational/builder/builder/main.go:54
MethodSetStructure
()
creational/builder/builder/main.go:77
MethodSetWheels
()
creational/builder/builder.go:4
MethodSetWheels
()
creational/builder/builder.go:20
MethodSetWheels
()
creational/builder/builder/main.go:44
MethodSetWheels
()
creational/builder/builder/main.go:67
FunctionSimulateConcurrentReadWriteMap
()
concurrency/read_struct_props/main.go:45
← previousnext →301–400 of 583, ranked by callers