Esempio n. 1
1
func (c *command) String() string {
	commands := map[uint]string{
		MoveTo:    "MoveTo",
		LineTo:    "LineTo",
		ClosePath: "ClosePath",
	}
	return util.Sprintf("%s(%+v)", commands[c.cid], c.params)
}
Esempio n. 2
1
func (o *Node) String() string {
	return util.Sprintf("%+v", o)
}
Esempio n. 3
1
func (o *Way) String() string {
	return util.Sprintf("%+v", o)
}
Esempio n. 4
1
func (o *Relation) String() string {
	return util.Sprintf("%+v", o)
}
Esempio n. 5
1
func (c Coordinate) String() string {
	return util.Sprintf("[%.6f, %.6f]", c.Lat, c.Lon)
}