blob: 46b707cf6c6f56b2bcf573fac9beb5f40a0ac93a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package utils
import "os"
func CheckError(e error) {
if e != nil {
panic(e)
}
}
func ReadByteFromFile(file *os.File, size int32) []byte {
tmp := make([]byte, size)
file.Read(tmp)
return tmp
}
|