package
2.0.4
Repository: https://github.com/yuzp1996/studygolang.git
Documentation: pkg.go.dev

# README

迭代器模式

定义

提供了一个方法顺序访问一个聚合对象中的所有元素,而不暴露其内部的表示

流程

有早饭和晚饭菜单,我们可以让这两份菜单都实现一个接口[或者衍生出一个结构体帮助实现该接口],getvalue和hasvalue,我们让服务生只调用这个接口中的这两个方法,就可以迭代所有的菜单

单一责任原则

一个类应该只有一个引起变化的原因

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author