mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-07-03 00:20:48 +02:00
Moved coords in separate module.
This commit is contained in:
12
common/coords.go
Normal file
12
common/coords.go
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright 2014 by Sascha L. Teichmann
|
||||
// Use of this source code is governed by the MIT license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
package common
|
||||
|
||||
import "strconv"
|
||||
|
||||
// Constructs a database key out of byte slice.
|
||||
func DecodePosFromBytes(key []byte) (pos int64, err error) {
|
||||
return strconv.ParseInt(string(key), 10, 64)
|
||||
}
|
Reference in New Issue
Block a user