cast
cast copied to clipboard
safe and easy casting from one type to another in Go
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.19 to 3.29.0. Release notes Sourced from github/codeql-action's releases. v3.29.0 CodeQL Action Changelog See the releases page for the relevant changes to the CodeQL CLI and language...
the behaviour is different in v1.9.2 version comparing to v1.8.0, this should be a break change, right? It is causing our service to behave differently because we have a error...
The library currently handles out of bounds errors inconsistently: - Strings exceeding int64 and uint64 bounds will return an error (from strconv) - Strings exceeding other int/uint types won't return...
People are complaining about unexpected results when converting a string (usually prefixed with 0) to a number type. The underlying strconv functions are called with 0 base which means it's...
Tracking some ideas for a potential v2 version of the library. - Generic `ToSlice` (the function currently exists with a different signature) - Remove some exotic transformations (eg. string to...
This PR fixes #232 by allowing the user to cast as a Base derived value from the interface. Methods added: ``` # Public Methods inside `cast.go` ToBaseInt64(input interface, base int)...
cast.ToUint32("0134444") = 47396 my go version go1.23.4 darwin/amd64, cast version 1.71
fix:string to uint64 error
When some of the built-in conditions are not enough, let the user pass in a handler function to supplement the