Пример #1
0
func NewTrain(path []Point) Train {
	random := rand.Int63()
	return Train{Id: css.Id(fmt.Sprintf("%d", random)),
		path:              path,
		currentPointIndex: 1,
		Position:          path[0]}
}
Пример #2
0
func (train Train) Selector() string {
	return css.Id(train.Id).Selector()
}