Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crazybber/awesome-patterns
/ functions
Functions
583 in github.com/crazybber/awesome-patterns
⨍
Functions
583
◇
Types & classes
195
Method
Fetch
(url string)
concurrency/subtasks/fetchers/fetchers.go:53
Method
Fetch
()
concurrency/feedreader/main.go:513
Method
Fetch
()
concurrency/feedreader/main.go:560
Method
Get
(id string)
behavioral/registry/registry.go:61
Method
GetFav
()
behavioral/observerpattern/main.go:58
Method
GetMotorbikeType
()
creational/abstract_factory/sport_motorbike.go:13
Method
GetMotorbikeType
()
creational/abstract_factory/motorbike.go:4
Method
GetMotorbikeType
()
creational/abstract_factory/cruise_motorbike.go:13
Method
GetName
()
playground/main.go:17
Method
GetName
()
concurrency/subtasks/fetchers/fetchers.go:24
Method
GetName
()
concurrency/subtasks/fetchers/fetchers.go:41
Method
GetName
()
concurrency/subtasks/fetchers/fetchers.go:58
Function
GetShape
(shape string)
creational/factorymethod/shape/shape.go:34
Function
GetSingletonObject
()
creational/singleton/singleton/internal/singleton.go:21
Method
GetVehicle
()
creational/builder/builder.go:7
Method
GetVehicle
()
creational/builder/builder.go:35
Method
GetVehicle
()
creational/builder/builder/main.go:16
Method
Heal
(p *Player)
behavioral/state/problem.go:25
Method
Heal
(p *Player)
behavioral/state/problem.go:41
Method
Heal
(P *Player)
behavioral/state/problem.go:64
Method
HealPlayer
()
behavioral/state/problem.go:77
Method
Hurt
(p *Player ,dmg int)
behavioral/state/problem.go:29
Method
Hurt
(p *Player ,dmg int)
behavioral/state/problem.go:53
Method
Hurt
(P *Player ,dmg int)
behavioral/state/problem.go:68
Method
HurtPlayer
(damage int)
behavioral/state/problem.go:81
Method
LiftLeftSide
(S *Seesaw)
behavioral/state/main.go:21
Method
LiftLeftSide
(S *Seesaw)
behavioral/state/main.go:32
Method
LiftRightSide
(S *Seesaw)
behavioral/state/main.go:25
Method
LiftRightSide
(S *Seesaw)
behavioral/state/main.go:37
Method
MaxSpeed
()
structural/bridge/main.go:24
Method
MaxSpeed
()
structural/bridge/main.go:39
Function
NaiveDedupe
STOPMERGECLOSE OMIT NaiveDedupe converts a stream of Items that may contain duplicates into one that doesn't.
concurrency/feedreader/main.go:417
Function
NaiveMerge
STARTNAIVEMERGE OMIT
concurrency/feedreader/main.go:319
Method
Name
()
concurrency/subtasks/divide_and_conquer/divide_and_conquer.go:69
Function
New
New returns a new Registry interface
behavioral/registry/registry.go:97
Function
NewPipeline
(d DispatcherBuilder, idle uint32, debug bool)
messaging/fanout.go:52
Method
NewVehicle
(v int)
creational/abstract_factory/motorbike_factory.go:15
Method
NewVehicle
(v int)
creational/abstract_factory/car_factory.go:15
Method
Notify
()
behavioral/observerpattern/main.go:16
Method
NumDoors
()
creational/abstract_factory/luxury_car.go:5
Method
NumDoors
()
creational/abstract_factory/family_car.go:5
Method
NumSeats
()
creational/abstract_factory/sport_motorbike.go:9
Method
NumSeats
()
creational/abstract_factory/cruise_motorbike.go:9
Method
NumSeats
()
creational/abstract_factory/luxury_car.go:13
Method
NumSeats
()
creational/abstract_factory/family_car.go:13
Method
NumWheels
()
creational/abstract_factory/sport_motorbike.go:5
Method
NumWheels
()
creational/abstract_factory/cruise_motorbike.go:5
Method
NumWheels
()
creational/abstract_factory/luxury_car.go:9
Method
NumWheels
()
creational/abstract_factory/family_car.go:9
Method
OnEnd
()
behavioral/template/main.go:26
Method
OnEnd
()
behavioral/template/main.go:36
Method
OnNotify
(e Event)
behavioral/observer/main.go:54
Method
OnStart
()
behavioral/template/main.go:22
Method
OnStart
()
behavioral/template/main.go:32
Method
Pay
(amount float32)
creational/factorymethod/main.go:21
Method
Pay
(amount float32)
creational/factorymethod/main.go:27
Method
Pop
()
playground/generic_data_structure/main.go:21
Function
Presentation
(human ...Human)
playground/benchmark/main.go:34
Method
Prune
Prune removes nil entries from the registry
behavioral/registry/registry.go:39
Method
Prune
()
behavioral/registry/registry.go:68
Method
Register
Register adds an item to the registry and returns an identifying string
behavioral/registry/registry.go:42
Method
Register
(data interface{})
behavioral/registry/registry.go:76
Method
Register
Register allows an instance to register itself to listen/observe events.
behavioral/observer/main.go:31
Method
RegisterName
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
Method
RegisterName
(data interface{}, identifier string)
behavioral/registry/registry.go:88
Method
Release
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
Method
Release
()
synchronization/semaphore2/main.go:48
Function
Run
()
concurrency/concurrency_in_go/ch1/ch1.go:23
Method
Run
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
Method
Run
()
structural/bridge/main.go:19
Method
Run
()
structural/bridge/main.go:34
Method
Run
()
playground/cron/cron_test.go:17
Method
Run
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
Method
Run
Run runs a Task and does appropriate accounting via a given sync.WorkGroup.
workerpool/main.go:30
Function
RunDivideAndConquer
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
Function
RunFetchers
()
concurrency/subtasks/fetchers/fetchers.go:103
Function
RunLetter
()
concurrency/concurrency_in_go/ch1/letter_channel_example.go:34
Function
RunSpider
()
concurrency/concurrency_in_go/ch1/spider.go:73
Method
SayHi
()
creational/singleton/singleton/internal/singleton.go:12
Method
SayHi
()
playground/mocklib/robot.go:14
Method
SayHi
()
playground/mocklib/robot.go:22
Method
SayHi
SayHi provides a mock function with given fields:
playground/mocklib/mocks/Robot.go:13
Method
Sell
()
structural/facade/main.go:19
Method
Sell
()
structural/facade/main.go:25
Method
Sell
()
structural/facade/main.go:31
Method
SetBuilder
(b BuildProcess)
creational/builder/builder.go:43
Method
SetOutput
(out *os.File)
playground/zero_initialization/main.go:20
Method
SetSeats
()
creational/builder/builder.go:5
Method
SetSeats
()
creational/builder/builder.go:25
Method
SetSeats
()
creational/builder/builder/main.go:49
Method
SetSeats
()
creational/builder/builder/main.go:72
Method
SetStructure
()
creational/builder/builder.go:6
Method
SetStructure
()
creational/builder/builder.go:30
Method
SetStructure
()
creational/builder/builder/main.go:54
Method
SetStructure
()
creational/builder/builder/main.go:77
Method
SetWheels
()
creational/builder/builder.go:4
Method
SetWheels
()
creational/builder/builder.go:20
Method
SetWheels
()
creational/builder/builder/main.go:44
Method
SetWheels
()
creational/builder/builder/main.go:67
Function
SimulateConcurrentReadWriteMap
()
concurrency/read_struct_props/main.go:45
← previous
next →
301–400 of 583, ranked by callers