This website requires JavaScript.
Explore
Help
Sign In
mirror
/
go-pattern-examples
Watch
1
Star
0
Fork
0
You've already forked go-pattern-examples
mirror of
https://github.com/crazybber/go-pattern-examples.git
synced
2024-11-29 23:16:03 +03:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
e12023b09f
go-pattern-examples
/
behavior
/
16_state
/
README.md
4 lines
251 B
Markdown
Raw
Normal View
History
Unescape
Escape
init design pattern codes
2020-04-21 17:50:21 +03:00
# 状态模式
update README for iterator /composite/state
2020-04-28 07:08:15 +03:00
状态模式的意图是将状态和行为分类
,
go语言自身的结构和接口实现就是一个状态模式
,
因为结构本身往往是有状态的
,
表示行为的接口可以组合到结构上
,
形成完整的功能单元.
Reference in New Issue
Copy Permalink