Notable new features 🎉
- Casting from type aliases is now supported for basic types
- Added generic functions:
To
/ToE
,Must
,ToNumber
/ToNumberE
- Increased test coverage
- Converting float numbers from string is now supported
What's Changed
- build(deps): bump github/codeql-action from 3.28.17 to 3.28.18 by @dependabot in #248
- build(deps): bump actions/dependency-review-action from 4.6.0 to 4.7.1 by @dependabot in #247
- build(deps): bump actions/setup-go from 5.4.0 to 5.5.0 by @dependabot in #245
- refactor: move number parsing to generic functions by @sagikazarmark in #250
- Improve ToString/ToStringE performance by @ganigeorgiev in #244
- Split caste.go into smaller files by @sagikazarmark in #251
- refactor: remove unused initial int conversion by @sagikazarmark in #253
- Generate code to make maintenance easier by @sagikazarmark in #252
- feat: add To and ToNumber functions by @sagikazarmark in #255
- build(deps): bump golangci/golangci-lint-action from 7.0.0 to 8.0.0 by @dependabot in #243
- Move tests next to their implementation by @sagikazarmark in #256
- Refactor number tests by @sagikazarmark in #257
- feat: return 0 when casting an empty string to a number by @sagikazarmark in #259
- Support converting string float numbers to integer types by @sagikazarmark in #261
- Test improvements by @sagikazarmark in #262
- Improvements by @sagikazarmark in #263
- refactor: return indirection result from indirect function by @sagikazarmark in #264
- Slice improvements by @sagikazarmark in #265
- refactor: move error message to a constant by @sagikazarmark in #267
- chore: improve map cast functions by @sagikazarmark in #269
- Resolve aliases by @sagikazarmark in #271
New Contributors
- @ganigeorgiev made their first contribution in #244
Full Changelog: v1.8.0...v1.9.0