* URL Query ------------------------------------------------ */ URLValues creates a url.Values object from an Obj. This function requires that the wrapped object be a map[string]interface{}
()
| 186 | // URLValues creates a url.Values object from an Obj. This |
| 187 | // function requires that the wrapped object be a map[string]interface{} |
| 188 | func (m Map) URLValues() url.Values { |
| 189 | vals := make(url.Values) |
| 190 | |
| 191 | m.parseURLValues(m, vals, "") |
| 192 | |
| 193 | return vals |
| 194 | } |
| 195 | |
| 196 | func (m Map) parseURLValues(queryMap Map, vals url.Values, key string) { |
| 197 | useSliceIndex := false |