From 6f5ccf435585e43a00e3cc50f4bcefac36ada818 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Sun, 16 Jan 2022 18:52:30 +0100 Subject: update dependencies --- vendor/codeberg.org/gruf/go-format/util.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 vendor/codeberg.org/gruf/go-format/util.go (limited to 'vendor/codeberg.org/gruf/go-format/util.go') diff --git a/vendor/codeberg.org/gruf/go-format/util.go b/vendor/codeberg.org/gruf/go-format/util.go new file mode 100644 index 000000000..68a9e2de3 --- /dev/null +++ b/vendor/codeberg.org/gruf/go-format/util.go @@ -0,0 +1,13 @@ +package format + +import "strconv" + +// can32bitInt returns whether it's possible for 's' to contain an int on 32bit platforms. +func can32bitInt(s string) bool { + return strconv.IntSize == 32 && (0 < len(s) && len(s) < 10) +} + +// can64bitInt returns whether it's possible for 's' to contain an int on 64bit platforms. +func can64bitInt(s string) bool { + return strconv.IntSize == 64 && (0 < len(s) && len(s) < 19) +} -- cgit v1.2.3