You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added new default & set types for `chan`, `map`, `slice`, `time.Time`
and `Pointer` types.
- Updated to handle pointer to a `Slice` or `Map` for situations where
code is not under your control. Fixes#43
@@ -58,7 +58,14 @@ These functions modify the data in-place.
58
58
| ucase | Uppercases the data. |
59
59
| ucfirst | Upper cases the first character of the data. |
60
60
61
+
**Special Notes:**
62
+
`default` and `set` modifiers are special in that they can be used to set the value of a field or underlying type information or attributes and both use the same underlying function to set the data.
61
63
64
+
Setting a Param will have the following special effects on data types where it's not just the value being set:
65
+
- Chan - param used to set the buffer size, default = 0.
66
+
- Slice - param used to set the capacity, default = 0.
67
+
- Map - param used to set the size, default = 0.
68
+
- time.Time - param used to set the time format OR value, default = time.Now(), `utc` = time.Now().UTC(), other tries to parse using RFC3339Nano and set a time value.
0 commit comments