diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-05 00:37:32 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-05 00:37:32 +0100 |
| commit | 6960aecc25400320adee1b8802a86839326e15b6 (patch) | |
| tree | 334f7ca9491080a5e6f9a9747da77281c4958ba2 /vendor/github.com/go-faker/faker/v4/pkg/interfaces | |
| download | hepi-6960aecc25400320adee1b8802a86839326e15b6.tar.gz | |
Engage!
Diffstat (limited to 'vendor/github.com/go-faker/faker/v4/pkg/interfaces')
3 files changed, 52 insertions, 0 deletions
diff --git a/vendor/github.com/go-faker/faker/v4/pkg/interfaces/language.go b/vendor/github.com/go-faker/faker/v4/pkg/interfaces/language.go new file mode 100644 index 0000000..dff1859 --- /dev/null +++ b/vendor/github.com/go-faker/faker/v4/pkg/interfaces/language.go @@ -0,0 +1,24 @@ +package interfaces + +// LangRuneBoundary is for language boundary +type LangRuneBoundary struct { + Start rune + End rune + Exclude []rune +} + +// Language rune boundaries here +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} +) diff --git a/vendor/github.com/go-faker/faker/v4/pkg/interfaces/number.go b/vendor/github.com/go-faker/faker/v4/pkg/interfaces/number.go new file mode 100644 index 0000000..59dddfb --- /dev/null +++ b/vendor/github.com/go-faker/faker/v4/pkg/interfaces/number.go @@ -0,0 +1,18 @@ +package interfaces + +// RandomIntegerBoundary is the struct for random integer boundaries +type RandomIntegerBoundary struct { + Start int + End int +} + +// RandomFloatBoundary is the struct for random float boundaries +type RandomFloatBoundary struct { + Start float64 + End float64 +} + +var ( + DefaultIntBoundary = RandomIntegerBoundary{Start: 0, End: 100} + DefaultFloatBoundary = RandomFloatBoundary{Start: 0, End: 100} +) diff --git a/vendor/github.com/go-faker/faker/v4/pkg/interfaces/type.go b/vendor/github.com/go-faker/faker/v4/pkg/interfaces/type.go new file mode 100644 index 0000000..5742ed0 --- /dev/null +++ b/vendor/github.com/go-faker/faker/v4/pkg/interfaces/type.go @@ -0,0 +1,10 @@ +package interfaces + +import "reflect" + +// CustomProviderFunction used as the standard layout function for custom providers +type CustomProviderFunction func() (interface{}, error) + +// TaggedFunction used as the standard layout function for tag providers in struct. +// This type also can be used for custom provider. +type TaggedFunction func(v reflect.Value) (interface{}, error) |
