interfaces

package
v4.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// LangENG is for english language
	LangENG = LangRuneBoundary{65, 122, []rune{91, 92, 93, 94, 95, 96}}
	// LangCHI is for chinese language
	LangCHI = LangRuneBoundary{19968, 40869, nil}
	// LangRUS is for russian language
	LangRUS = LangRuneBoundary{1025, 1105, nil}
	// LangJPN is for japanese Hiragana Katakana language
	LangJPN = LangRuneBoundary{12353, 12534, []rune{12436, 12437, 12438, 12439, 12440, 12441, 12442, 12443, 12444, 12445, 12446, 12447, 12448}}
	// LangKOR is for korean Hangul language
	LangKOR = LangRuneBoundary{44032, 55203, nil}
	// EmotEMJ is for emoticons
	EmotEMJ = LangRuneBoundary{126976, 129535, nil}
)

Language rune boundaries here

View Source
var (
	DefaultIntBoundary   = RandomIntegerBoundary{Start: 0, End: 100}
	DefaultFloatBoundary = RandomFloatBoundary{Start: 0, End: 100}
)

Functions

This section is empty.

Types

type CustomProviderFunction

type CustomProviderFunction func() (interface{}, error)

CustomProviderFunction used as the standard layout function for custom providers

type LangRuneBoundary

type LangRuneBoundary struct {
	Start   rune
	End     rune
	Exclude []rune
}

LangRuneBoundary is for language boundary

type RandomFloatBoundary

type RandomFloatBoundary struct {
	Start float64
	End   float64
}

RandomFloatBoundary is the struct for random float boundaries

type RandomIntegerBoundary

type RandomIntegerBoundary struct {
	Start int
	End   int
}

RandomIntegerBoundary is the struct for random integer boundaries

type TaggedFunction

type TaggedFunction func(v reflect.Value) (interface{}, error)

TaggedFunction used as the standard layout function for tag providers in struct. This type also can be used for custom provider.

Jump to

Keyboard shortcuts

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