8000 Releases ยท spf13/cast ยท GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: spf13/cast

8000

v1.9.2

02 Jun 13:38
v1.9.2
40e8e07
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.9.1...v1.9.2

v1.9.1

01 Jun 15:01
v1.9.1
cb5df5f
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.9.0...v1.9.1

v1.9.0

01 Jun 11:34
v1.9.0
a79ffed
Compare
Choose a tag to compare

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

Warning

Since cast now supports converting float values from strings, a related edge case behaves differently:

In previous versions, attempting to convert an empty string to a float resulted in an error.

Starting with this version, the same operation no longer raises an error.

To maintain consistency with the rest of the library, an empty string now converts to the float value 0.0.

What's Changed

New Contributors

Full Changelog: v1.8.0...v1.9.0

v1.8.0

02 May 12:18
v1.8.0
01004f2
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.7.1...v1.8.0

v1.7.1

18 Dec 10:10
@bep bep
487df00
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.7.0...v1.7.1

v1.7.0

06 Aug 19:13
@bep bep
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.6.0...v1.7.0

v1.6.0

28 Nov 09:54
@bep bep
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.5.1...v1.6.0

v1.5.1

15 May 08:31
@bep bep
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.5.0...v1.5.1

v1.5.0: Misc number fixes

11 May 13:59
@bep bep
Compare
Choose a tag to compare
  • 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

15 Aug 17:48
@bep bep
8807572
Compare
Choose a tag to compare
Fix date parse for "2016-03-06 15:28:01 +0900"
0