package util import ( "fmt" "testing" ) func TestRandNumString(t *testing.T) { expectSize := 6 salt := RandNumString(expectSize) fmt.Println(salt) if len(salt) != expectSize { t.Fatal("wrong size") } }