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
Package form Decodes url.Values into struct values and Encodes struct values into url.Values.
11
+
Package form Decodes url.Values into Go value(s) and Encodes Go value(s) into url.Values.
12
12
13
13
It has the following features:
14
14
@@ -18,6 +18,7 @@ It has the following features:
18
18
- Only creates objects as necessary eg. if no `array` or `map` values are passed down, the `array` and `map` are left as their default values in the struct.
19
19
- Allows for Custom Type registration.
20
20
- Handles time.Time using RFC3339 time format by default, but can easily be changed by registering a Custom Type, see below.
21
+
- Handles Encoding & Decoding of almost all Go types eg. can Decode into struct, array, map, int... and Encode a struct, array, map, int...
21
22
22
23
Common Questions
23
24
@@ -260,34 +261,34 @@ Field []*string{nil, nil, &i}
260
261
261
262
Benchmarks
262
263
------
263
-
###### Run on MacBook Pro (Retina, 15-inch, Late 2013) 2.6 GHz Intel Core i7 16 GB 1600 MHz DDR3 using Go version go1.6.2 darwin/amd64
264
+
###### Run on MacBook Pro (Retina, 15-inch, Late 2013) 2.6 GHz Intel Core i7 16 GB 1600 MHz DDR3 using Go version go1.6.3 darwin/amd64
264
265
265
266
NOTE: the 1 allocation and B/op in the first 4 decodes is actually the struct allocating when passing it in, so primitives are actually zero allocation.
0 commit comments