Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.4% on proxy.golang.org
Top 0.7% dependent packages on proxy.golang.org
Top 0.8% dependent repos on proxy.golang.org
Top 5.1% forks on proxy.golang.org

proxy.golang.org : github.com/cstockton/go-conv

Package conv provides fast and intuitive conversions across Go types. All conversion functions accept any type of value for conversion, if unable to find a reasonable conversion path they will return the target types zero value and an error. Numeric conversion from other numeric values of an identical type will be returned without modification. Numeric conversions deviate slightly from Go when dealing with under/over flow. When performing a conversion operation that would overflow, we instead assign the maximum value for the target type. Similarly, conversions that would underflow are assigned the minimun value for that type, meaning unsigned integers are given zero values instead of spilling into large positive integers. In short, panics should not occur within this library under any circumstance. This obviously excludes any oddities that may surface when the runtime is not in a healthy state, i.e. uderlying system instability, memory exhaustion. If you are able to create a reproducible panic please file a bug report.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/cstockton/go-conv
Keywords: conv, conversion, conversion-functions, strconv, string-conversion, time-conversion
License: MIT
Latest release: almost 3 years ago
First release: almost 3 years ago
Namespace: github.com/cstockton
Dependent packages: 58
Dependent repositories: 53
Stars: 387 on GitHub
Forks: 19 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 8 days ago

    Loading...
    Readme
    Loading...