github.com/artisanhe/tools@v1.0.1-0.20210607022958-19a8fef2eb04/misc/unique_str/unique_str_test.go (about) 1 package unique_str_test 2 3 import ( 4 "testing" 5 6 "github.com/artisanhe/tools/misc/unique_str" 7 ) 8 9 func TestUniqueStr(t *testing.T) { 10 unique_str := unique_str.GenerateUniqueIDToStr(uint64(1121314151617181910), 25) 11 t.Logf("unique_str:%s", unique_str) 12 } 13 14 func TestRandIDStr(t *testing.T) { 15 t.Logf(unique_str.New()) 16 }