パッケージ: golang-fortio-safecast-dev (1.2.0-2)
golang-fortio-safecast-dev に関するリンク
Debian の資源:
golang-fortio-safecast ソースパッケージをダウンロード:
- [golang-fortio-safecast_1.2.0-2.dsc]
- [golang-fortio-safecast_1.2.0.orig.tar.gz]
- [golang-fortio-safecast_1.2.0-2.debian.tar.xz]
メンテナ:
外部の資源:
- ホームページ [github.com]
類似のパッケージ:
試験的な (experimental の) パッケージ
警告: このパッケージは experimental ディストリビューションのものです。つまり、おそらく不安定でバグがあり、それどころかデータの損失を起こすかもしれません。使用前には、変更履歴やその他の参照可能なドキュメントを必ず調べてください。
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.