1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-04 22:17:39 +08:00

14 lines
161 B
Go
Raw Normal View History

2013-10-22 16:45:31 -07:00
package gobot
2013-10-23 22:00:03 -07:00
type Port struct {
2013-11-13 20:44:54 -08:00
Name string
2013-10-23 22:00:03 -07:00
}
2013-11-13 20:44:54 -08:00
func (Port) NewPort(p string) *Port {
return new(Port)
2013-10-23 22:00:03 -07:00
}
func (p *Port) ToString() string {
2013-11-13 20:44:54 -08:00
return p.Name
2013-10-23 22:00:03 -07:00
}