Directories
¶
| Path | Synopsis |
|---|---|
|
behavioral
|
|
|
chain_of_responsibility
command
|
|
|
command
command
命令模式(command pattern)主要解耦了行为和接收者,使之可以任意组合为一个完整的命令,并在合适的时候被调用 主要分为四个部分,command ,ConcreteCommand ,receiver ,invoker.
|
命令模式(command pattern)主要解耦了行为和接收者,使之可以任意组合为一个完整的命令,并在合适的时候被调用 主要分为四个部分,command ,ConcreteCommand ,receiver ,invoker. |
|
interpreter
command
|
|
|
mediator
command
中介者模式(mediator pattern) 当两个对象存在复杂的依赖关系时,考虑增加一个中介者使之解耦,使他们不需要进行显式的引用.
|
中介者模式(mediator pattern) 当两个对象存在复杂的依赖关系时,考虑增加一个中介者使之解耦,使他们不需要进行显式的引用. |
|
memento
command
备忘录模式 memento pattern 在不影响原结构封装的情况下,能够暂时保存一个结构的状态,并能够恢复 这里是一个游戏存档的例子,尝试保存玩家当前位置,并在读档的时候恢复
|
备忘录模式 memento pattern 在不影响原结构封装的情况下,能够暂时保存一个结构的状态,并能够恢复 这里是一个游戏存档的例子,尝试保存玩家当前位置,并在读档的时候恢复 |
|
observer
command
Package main serves as an example application that makes use of the observer pattern.
|
Package main serves as an example application that makes use of the observer pattern. |
|
observerpattern
command
|
|
|
state
command
状态模式 state pattern.
|
状态模式 state pattern. |
|
strategy
command
|
|
|
template
command
存疑的部分.
|
存疑的部分. |
|
visitor
command
访问者模式 visitor pattern.
|
访问者模式 visitor pattern. |
|
channel
|
|
|
basic
command
|
|
|
basic_channel_error_handling
command
|
|
|
behavior_of_channel
command
|
|
|
buffed
command
|
|
|
noneblocking
command
|
|
|
producer_consumer
command
|
|
|
unbuffed
command
|
|
|
atomic_functions
command
|
|
|
barrier
command
|
|
|
barrier/n_barrier
command
|
|
|
compressfiles
command
|
|
|
concurrency_in_go
command
|
|
|
concurrency_in_go/ch3
command
|
|
|
confinement/adhoc
command
|
|
|
confinement/lexical
command
|
|
|
error_handle
command
|
|
|
fetch_urls
command
|
|
|
goroutine_leak
command
|
|
|
iterator
command
|
|
|
iterator/iterator_error_handling
command
|
|
|
iterator/iterator_sem
command
|
|
|
locker
command
|
|
|
pingpong
command
|
|
|
pipeline
command
|
|
|
pipeline/pipeline
command
|
|
|
pipeline/pipeline_from_book
command
|
|
|
race_detection
command
|
|
|
read_struct_props
command
|
|
|
runner
command
|
|
|
select_block
command
|
|
|
select_error_handling
command
|
|
|
subtasks
command
|
|
|
worker_unbuffed
command
|
|
|
creational
|
|
|
abstract_factory
command
|
|
|
builder/builder
command
|
|
|
factorymethod
command
|
|
|
singleton/singleton
command
|
|
|
data
|
|
|
graphql
command
|
|
|
idiom
|
|
|
iota_const
command
|
|
|
passbyvalue
command
|
|
|
fan_in_out
command
|
|
|
future
command
|
|
|
future/future
command
|
|
|
future/futurev1
command
|
|
|
pubsub
command
|
|
|
benchmark
command
|
|
|
cmd
command
|
|
|
defer
command
|
|
|
factory/urfavecli
command
|
|
|
for-range
command
|
|
|
generic_data_structure
command
|
|
|
interface-semantics
command
|
|
|
slice
command
|
|
|
zero_initialization
command
|
|
|
stability
|
|
|
deadline
Package deadline implements the deadline (also known as "timeout") resiliency pattern for Go.
|
Package deadline implements the deadline (also known as "timeout") resiliency pattern for Go. |
|
structural
|
|
|
bridge
command
桥接模式 bridge pattern.
|
桥接模式 bridge pattern. |
|
composite
command
组合模式 composite pattern.
|
组合模式 composite pattern. |
|
decorator
command
|
|
|
facade
command
外观模式 facade pattern.
|
外观模式 facade pattern. |
|
flyweight
command
享元模式 flyweight pattern.
|
享元模式 flyweight pattern. |
|
proxy
command
|
|
|
synchronization
|
|
|
semaphore
command
|
|
|
semaphore2
command
|
|
|
simplesem
command
|
|
|
waitgroup
command
|
|
|
ardan_labs_worker_pool
command
Package workpool implements a pool of go routines that are dedicated to processing work that is posted into the pool.
|
Package workpool implements a pool of go routines that are dedicated to processing work that is posted into the pool. |
|
pool
command
|
Click to show internal directories.
Click to hide internal directories.
