mirror of
https://github.com/jwetzell/free-d-go.git
synced 2026-09-11 17:09:25 +00:00
move pkg to root level
This commit is contained in:
@@ -49,7 +49,6 @@ func Encode(message FreeDPosition) []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Decode(bytes []byte) (FreeDPosition, error) {
|
func Decode(bytes []byte) (FreeDPosition, error) {
|
||||||
|
|
||||||
if len(bytes) != 29 {
|
if len(bytes) != 29 {
|
||||||
return FreeDPosition{}, errors.New("FreeD packet must be 29 bytes long")
|
return FreeDPosition{}, errors.New("FreeD packet must be 29 bytes long")
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user