mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-04 05:26:51 -04:00
use I2P integer
This commit is contained in:
11
lib/common/integer.go
Normal file
11
lib/common/integer.go
Normal file
@ -0,0 +1,11 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
)
|
||||
|
||||
func Integer(number ...byte) int {
|
||||
return int(
|
||||
binary.BigEndian.Uint64(number),
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user