mtsatellite/coords.go
2014-08-08 15:04:53 +02:00

13 lines
322 B
Go

// 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 main
import "strconv"
// Constructs a database key out of byte slice.
func bytes2pos(key []byte) (pos int64, err error) {
return strconv.ParseInt(string(key), 10, 64)
}