mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 21:12:25 -05:00
update dependencies
This commit is contained in:
parent
18047de666
commit
6f5ccf4355
55 changed files with 5674 additions and 1905 deletions
13
vendor/codeberg.org/gruf/go-format/util.go
generated
vendored
Normal file
13
vendor/codeberg.org/gruf/go-format/util.go
generated
vendored
Normal file
|
|
@ -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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue