2016-02-05 16:19:43 +01:00
|
|
|
|
package data // code.bitsetter.de/fun/gosl/data
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|