Releases: neumachen/randata
v0.3.0
v0.2.1
v0.2.0
Release Summary:
This release introduces significant enhancements and features to the randata
package. Here are the key highlights:
-
Address Improvements: The
Address
struct now includes additional methods for validating latitude, longitude, and empty postal codes. These methods enhance the address validation capabilities and provide more flexibility for handling address data. -
Random Address Generation: The
RandomUSAddress
function has been improved to ensure that the selected address has a valid postal code, latitude, and longitude. The latitude and longitude values are now rounded to the 6th decimal place for consistency and accuracy. -
Multi-Goroutine Support: The
RandomUSStateAddress
function now supports multiple goroutines for improved performance. The number of goroutines can be specified, and the default has been increased to 15 for faster address generation. -
Social Security Number (SSN) Generation: A new feature has been added to generate random SSNs using the
RandomSSN
function. It attempts to generate valid SSNs within a specified number of retries and provides options for formatting the generated SSNs. -
SSN Validation: The
ValidateSSN
function allows for validating SSNs, checking for length, leading zeros, all-zero groups, and conformity to the SSN regular expression. This functionality ensures the generated SSNs are valid and usable.
These improvements enhance the functionality, reliability, and performance of the randata
package, making it easier to generate random addresses and SSNs in Go applications.