transformers

package
v0.4.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateE164FormatPhoneNumberPreserveLength

func GenerateE164FormatPhoneNumberPreserveLength(number string) (string, error)

generates a random E164 phone number and returns it as a string

func GenerateIntPhoneNumberPreserveLength

func GenerateIntPhoneNumberPreserveLength(number int64) (int64, error)

func ScrambleChar

func ScrambleChar(r rune) rune

func TransformCharacterScramble

func TransformCharacterScramble(value, regex string) (*string, error)

func TransformE164PhoneNumber

func TransformE164PhoneNumber(phone string, preserveLength bool, maxLength int64) (*string, error)

Generates a random phone number and returns it as a string

func TransformInt64PhoneNumber

func TransformInt64PhoneNumber(number int64, preserveLength bool) (*int64, error)

generates a random phone number and returns it as an int64

Types

type Address

type Address struct {
	Address1 string `json:"address1"`
	Address2 string `json:"address2"`
	City     string `json:"city"`
	State    string `json:"state"`
	Zipcode  string `json:"zipcode"`
}

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 added in v0.4.24

type InvalidEmailAction string
const (
	InvalidEmailAction_Reject      InvalidEmailAction = "reject"
	InvalidEmailAction_Passthrough InvalidEmailAction = "passthrough"
	InvalidEmailAction_Null        InvalidEmailAction = "null"
	InvalidEmailAction_Generate    InvalidEmailAction = "generate"
)

func (InvalidEmailAction) String added in v0.4.24

func (g InvalidEmailAction) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL