Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State interface {
// contains filtered or unexported methods
}
State 接口定义了3个标准方法 注意每个方法的参数是交通灯TrafficLight
type TrafficLight ¶
type TrafficLight struct {
// contains filtered or unexported fields
}
TrafficLight 交通信号灯
func NewTrafficLight ¶
func NewTrafficLight() *TrafficLight
Click to show internal directories.
Click to hide internal directories.