gosl/data/network.go

17 lines
264 B
Go
Raw Permalink Normal View History

package data /* import "udico.de/fun/gosl/data" */
2016-02-05 16:19:43 +01:00
import (
"strconv"
)
type Handshake struct {
2016-02-06 15:18:07 +01:00
ID int
// Name string
W int
H int
2016-02-05 16:19:43 +01:00
}
func (h Handshake) String() string {
2016-02-06 15:18:07 +01:00
return (strconv.Itoa(h.ID) + ": " + strconv.Itoa(h.W) + "×" + strconv.Itoa(h.H))
2016-02-05 16:19:43 +01:00
}