Releases: xgfone/go-cast
Releases · xgfone/go-cast
v0.8.1
v0.8.0
- Added:
- Add the pure functions like
ToXXXPure
without trying to use the hook. - Allow the user to customize the conversion between the types by the interface, such as
interface{ Bool() bool }
. - Support to convert between
time.Duration
and~float
(float32
&float64
) based on second. - Try to use the reflect to support the user-defined basic types, such as
type Int int
.
- Add the pure functions like
- Changed:
- Convert
float32
andfloat64
totime.Duration
based on second instead of millisecond.
- Convert
v0.7.0
v0.6.0
v0.5.1
v0.5.0
- Changed:
- Change
ToTime
as the short forToTimeInLocation
. - Change
StringToTime
as the short forStringToTimeInLocation
. ToTimeInLocation
will sets the location of the result time.Time to the given location.StringToTimeInLocation
supports the more than one layouts when giving them, and retries them in turn.
- Change