1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00

uppercase hex

This commit is contained in:
2022-05-27 10:58:22 +08:00
parent 3cc5b24d65
commit ebf862e40b
2 changed files with 29 additions and 2 deletions

View File

@ -0,0 +1,18 @@
package bytesconv_test
import (
"testing"
"github.com/charlienet/go-mixed/bytesconv"
"github.com/charlienet/go-mixed/rand"
)
func TestHexUppercase(t *testing.T) {
b, _ := rand.RandBytes(12)
l := bytesconv.BytesResult(b).Hex()
t.Log(l)
u := bytesconv.BytesResult(b).UppercaseHex()
t.Log(u)
}