summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-faker/faker/v4/pkg/interfaces/number.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-faker/faker/v4/pkg/interfaces/number.go')
-rw-r--r--vendor/github.com/go-faker/faker/v4/pkg/interfaces/number.go18
1 files changed, 18 insertions, 0 deletions
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}
+)