Closed akshayvadher closed 3 months ago
Revert #10
Because I tested the original library and the following works,
const id = init({ length: 150 }); console.log(id()); // p0m6ycspza37iwloxpn5zw0nqtbkbcycha5mm6jlqzsu33qrlh84kmkvi41qt2w5khcddvb7a50wsczoy1o795rs75b3ifld3u
So
myFunction(CreateId()) // this won't work
id, err := CreateId() myFunction(id) // only this will work. This is cumbersome and for most cases, not required.
Added panic instead of error because the gain from validation was too small as compared to usability issue
Revert #10
Because I tested the original library and the following works,
So
id, err := CreateId() myFunction(id) // only this will work. This is cumbersome and for most cases, not required.