From fec0876f8a5722aafd7ed9fdc3155ff3fe323de4 Mon Sep 17 00:00:00 2001 From: sre Date: Fri, 17 Jun 2022 12:05:00 +0800 Subject: [PATCH] test str --- test/str_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/str_test.go diff --git a/test/str_test.go b/test/str_test.go new file mode 100644 index 0000000..02a7d67 --- /dev/null +++ b/test/str_test.go @@ -0,0 +1,14 @@ +package test + +import ( + "fmt" + "git.sre.ink/go/gtool" + "testing" +) + +func TestStr(tt *testing.T) { + fmt.Println(gtool.Str.HexEncode("hello world!")) + //68656c6c6f20776f726c6421 + fmt.Println(gtool.Str.HexDecode("68656c6c6f20776f726c6421")) + //hello world! +}