cast

safe and easy casting from one type to another in Go

MIT License

Stars
3.5K
Committers
30

Bot releases are hidden (Show)

cast - v1.7.0 Latest Release

Published by bep 2 months ago

What's Changed

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

cast - v1.6.0

Published by bep 11 months ago

What's Changed

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

cast - v1.5.1

Published by bep over 1 year ago

What's Changed

New Contributors

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

cast -

Published by bep over 2 years 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
cast -

Published by bep about 3 years ago

cast - Add ToTimeInDefaultLocation/E

Published by bep about 3 years ago

cast -

Published by bep almost 5 years ago

cast -

Published by bep almost 6 years ago

  • Add ToStringMapInt
  • Add ToStringMapInt64
  • Support RFC3339 time forms without TZ colon