parent
9a38c8c127
commit
fec0876f8a
@ -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! <nil>
|
||||||
|
}
|
||||||
Loading…
Reference in new issue