• Bug#1108465: ITP: golang-fortio-safecast -- Go library for number type

    From Nicolas Peugnet@1:229/2 to All on Sun Jun 29 11:50:01 2025
    XPost: linux.debian.bugs.dist
    From: nicolas@club1.fr

    Package: wnpp
    Severity: wishlist
    Owner: Nicolas Peugnet <nicolas@club1.fr>

    * Package name : golang-fortio-safecast
    Version : 1.0.0-1
    Upstream Author : Fortio (Φορτίο)
    * URL : https://github.com/fortio/safecast
    * License : Apache-2.0
    Programming Lang: Go
    Description : 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.

    This is a dependency of arduino-cli (#1100073).

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)