Documentation ¶
Index ¶
- func GenerateE164FormatPhoneNumberPreserveLength(number string) (string, error)
- func GenerateIntPhoneNumberPreserveLength(number int64) (int64, error)
- func ScrambleChar(r rune) rune
- func TransformCharacterScramble(value, regex string) (*string, error)
- func TransformE164PhoneNumber(phone string, preserveLength bool, maxLength int64) (*string, error)
- func TransformInt64PhoneNumber(number int64, preserveLength bool) (*int64, error)
- type Address
- type GenerateEmailType
- type InvalidEmailAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateE164FormatPhoneNumberPreserveLength ¶
generates a random E164 phone number and returns it as a string
func ScrambleChar ¶
func TransformE164PhoneNumber ¶
Generates a random phone number and returns it as a string
Types ¶
type GenerateEmailType ¶
type GenerateEmailType string
const ( GenerateEmailType_UuidV4 GenerateEmailType = "uuidv4" GenerateEmailType_FullName GenerateEmailType = "fullname" GenerateEmailType_Any GenerateEmailType = "any" )
func (GenerateEmailType) String ¶
func (g GenerateEmailType) String() string
type InvalidEmailAction ¶
type InvalidEmailAction string
const ( InvalidEmailAction_Reject InvalidEmailAction = "reject" InvalidEmailAction_Passthrough InvalidEmailAction = "passthrough" InvalidEmailAction_Null InvalidEmailAction = "null" InvalidEmailAction_Generate InvalidEmailAction = "generate" )
func (InvalidEmailAction) String ¶
func (g InvalidEmailAction) String() string
Source Files ¶
- generate_bool.go
- generate_card_number.go
- generate_categorical.go
- generate_city.go
- generate_email.go
- generate_first_name.go
- generate_float.go
- generate_full_address.go
- generate_full_name.go
- generate_gender.go
- generate_int64.go
- generate_int64_phone_number.go
- generate_international_phone_number.go
- generate_last_name.go
- generate_random_string.go
- generate_sha256hash.go
- generate_ssn.go
- generate_state.go
- generate_street_address.go
- generate_string_phone_number.go
- generate_unix_timestamp.go
- generate_username.go
- generate_utc_timestamp.go
- generate_uuid.go
- generate_zipcode.go
- transform_character_scramble.go
- transform_e164_phone_number.go
- transform_email.go
- transform_first_name.go
- transform_float.go
- transform_full_name.go
- transform_int64.go
- transform_int64_phone_number.go
- transform_lastname.go
- transform_string.go
- transform_string_phone_number.go
Click to show internal directories.
Click to hide internal directories.