feat: byte utils

This commit is contained in:
tx7do
2023-10-28 20:06:50 +08:00
parent b4188ca4d8
commit 82fbdc15d9
8 changed files with 98 additions and 1 deletions

11
byteutil/util_test.go Normal file
View File

@@ -0,0 +1,11 @@
package byteutil
import (
"fmt"
"testing"
)
func TestIntToBytes(t *testing.T) {
fmt.Println(IntToBytes(1))
fmt.Println(BytesToInt(IntToBytes(1)))
}