Versions in this module Expand all Collapse all v1 v1.0.0 Mar 2, 2023 Changes in this version + const AmountTag + const AmountWithCurrencyTag + const BoundaryEnd + const BoundaryStart + const CENTURY + const CreditCardNumber + const CreditCardType + const CurrencyTag + const DATE + const DayOfMonthTag + const DayOfWeekTag + const DomainNameTag + const E164PhoneNumberTag + const EmailTag + const Equals + const FirstNameFemaleTag + const FirstNameMaleTag + const FirstNameTag + const GENDER + const HyphenatedID + const ID + const IPV4Tag + const IPV6Tag + const JWT + const LATITUDE + const LONGITUDE + const Language + const LastNameTag + const Length + const MacAddressTag + const MonthNameTag + const NAME + const ONEOF + const PARAGRAPH + const PASSWORD + const PhoneNumber + const SENTENCE + const SKIP + const SliceLength + const TIME + const TIMESTAMP + const TIMEZONE + const TimePeriodTag + const TitleFemaleTag + const TitleMaleTag + const TollFreeNumber + const URLTag + const UnixTimeTag + const UserNameTag + const WORD + const YEAR + var EPSILON = 0.00000001 + var ErrDuplicateSeparator = "Duplicate separator for tag arguments." + var ErrMoreArguments = "Passed more arguments than is possible : (%d)" + var ErrNotEnoughTagArguments = "Not enough arguments for tag." + var ErrNotSupportedPointer = "Use sample:=new(%s)\n faker.FakeData(sample) instead" + var ErrNotSupportedTypeForTag = "Type is not supported by tag." + var ErrSmallerThanOne = "Size:%d is smaller than one." + var ErrSmallerThanZero = "Size:%d is smaller than zero." + var ErrStartValueBiggerThanEnd = "Start value can not be bigger than end value." + var ErrTagAlreadyExists = "Tag exists" + var ErrTagDoesNotExist = "Tag does not exist" + var ErrTagNotSupported = "Tag unsupported: %s" + var ErrUniqueFailure = "Failed to generate a unique value for field \"%s\"" + var ErrUnknownType = "Unknown Type" + var ErrUnsupportedKind = "Unsupported kind: %s" + var ErrUnsupportedKindPtr = "Unsupported kind: %s Change Without using * (pointer) in Field of %s" + var ErrUnsupportedNumberType = "Unsupported Number type." + var ErrUnsupportedTagArguments = "Tag arguments are not compatible with field type." + var ErrValueNotPtr = "Not a pointer value" + var ErrWrongFormattedTag = "Tag \"%s\" is not written properly" + var GoKeywords = []string + var LangCHI = langRuneBoundary + var LangENG = langRuneBoundary + var LangRUS = langRuneBoundary + var MapperTag = mapperTag + func Contains(slice []string, item string) bool + func DeepCopy(s string) string + func DeepCopySlice(bytes []byte) []byte + func FloatEquals(a, b float64) bool + func GetCurrentProjectRootPath() string + func GetParentDirectory(dirctory string) string + func GetPkgName(path string) string + func GetPkgNameV2(strExp string) string + func GetRandomFloat() float64 + func GetRepoByRelativePath(relativePath string) string + func GetTheReceiveNameFromSSA(s string) string + func GetUseMockByVersion(path string) int + func GetValue(t reflect.Type, level int) (reflect.Value, error) + func IsBasicDataType(t string) bool + func IsExportByName(name string) bool + func IsFileExist(path string) bool + func IsSystemPkg(path string) bool + func IsTypeArray(typ reflect.Type) bool + func IsTypeCollection(typ reflect.Type) bool + func IsTypeExported(t reflect.Type) bool + func IsTypeFunction(typ reflect.Type) bool + func IsTypeImplementsContext(typ reflect.Type) bool + func IsTypeImplementsError(typ reflect.Type) bool + func IsTypeIteratee(typ reflect.Type) bool + func IsTypeMap(typ reflect.Type) bool + func IsTypeSlice(typ reflect.Type) bool + func IsValueNil(value reflect.Value) bool + func LintPackageComment(path string) ([]string, error) + func RandStringBytes(n int) string + func RandomBool(rate float64) bool + func RandomFloat(min float64, max float64) float64 + func RandomInt(parameters ...int) (p []int, err error) + func RecoverOriginalFile(content []byte, path string) error + func RemoveCStyleComments(content []byte) []byte + func RemoveDirectory(dirName string) + func RemoveGoComments(path string) ([]byte, error) + func RemoveGoStyleComments(content []byte, comments []string) []byte + func RemoveLastFilePath(s string) string + func RemoveTestCaseFile(dirName, fileName string) + func ReplacePkgName(s string, pkgName string, originalPkgName string) string + func ReplacePkgNameForMap(s string, pkgName string, originalPkgName string, fromLeft bool) string + func UpperCaseFirstLetter(s string) string + type GoVersionInfo struct + FirstLevel int + SecondLevel int + ThirdLevel int + func GetGoVersion(path string) (GoVersionInfo, error) + type Plugin interface + AtgTestFile func() string + InstructionFile func() string + var PluginSDK Plugin + func NewPluginSDK(instructionFile, atgTestFile string) Plugin + type RWLocker interface + Lock func() error + RLock func() error + RUnlock func() error + Unlock func() error + var GlobalFileLock RWLocker + type TaggedFunction func(v reflect.Value) (interface{}, error)