some godoc

This commit is contained in:
Hayden Parker
2016-02-06 01:42:47 -08:00
parent 600118d140
commit 2b64fcaf33
4 changed files with 43 additions and 0 deletions

View File

@ -4,6 +4,11 @@ import (
"encoding/binary"
)
//
// Interpret a slice of bytes from length 1
// to length 8 as a big-endian integer and
// return an int representation.
//
func Integer(number []byte) int {
num_len := len(number)
if num_len < 8 {