Cast Versions Save

safe and easy casting from one type to another in Go

v1.6.0

4 months ago

What's Changed

Full Changelog: https://github.com/spf13/cast/compare/v1.5.1...v1.6.0

v1.5.1

10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/spf13/cast/compare/v1.5.0...v1.5.1

v1.5.0

1 year ago
  • Add support for json.Number
  • Enable integer and float conversion of time.Weekday and time.Month values
  • Allow nil in ToFloat* (which gets it in line with the rest)
  • Trim trailing zero decimals from string numbers, e.g. 10.0 before any int parsing.
  • Remove some test duplication
  • Replace testify with quicktest

v1.4.1

2 years ago

v1.4.0

2 years ago

v1.3.1

4 years ago

v1.3.0

5 years ago
  • Add ToStringMapInt
  • Add ToStringMapInt64
  • Support RFC3339 time forms without TZ colon