[ forky ]
[ sid ]
[ experimental ]
[ 源代码: golang-fortio-safecast ]
软件包:golang-fortio-safecast-dev(1.2.0-1)
golang-fortio-safecast-dev 的相关链接
Debian 的资源:
下载源码包 golang-fortio-safecast:
- [golang-fortio-safecast_1.2.0-1.dsc]
- [golang-fortio-safecast_1.2.0.orig.tar.gz]
- [golang-fortio-safecast_1.2.0-1.debian.tar.xz]
维护小组:
外部的资源:
- 主页 [github.com]
相似软件包:
Go library for number type conversions safe from accidental overflow
Avoid accidental overflow of numbers during go type conversions (e.g instead of shorter := bigger.(int8) type conversions use shorter := safecast.MustConvert[int8](bigger).
Safecast allows one to safely convert between numeric types in Go and return errors (or panic when using the Must* variants) when the cast would result in a loss of precision, range or sign.