issues Search Results · repo:google/go-querystring language:Go
Filter by
34 results
(60 ms)34 results
ingoogle/go-querystring (press backspace or delete to remove)It would be really handy to have a Decode() function that works like the reverse of Values() mapping url.Values back
into a struct.
I ran into this while working on my pet project, where I needed to parse ...
vcxp
- Opened on Apr 25
- #153
when encoding a struct field with an interface{} or any type, using a type that implements Encoder is not respected
It seems that only the field type in the struct is checked for Encoder interface, and ...
TomK
- 2
- Opened on Jul 19, 2024
- #121
TL;DR: Add support for camelCase and snake_case (commonly used formats for URL encoding) options in query.Values()
function.
This package, by default, uses the struct s field names for URL query parameters. ...
vasudevm
- Opened on Jan 12, 2023
- #86
On the Encoder interface if the method will be defined as a pointer on the type it will be ignored even if it got
implemented
type Working bool
func (d Working) EncodeValues(k string, v *url.Values) ...
isaacwein
- 2
- Opened on Dec 12, 2022
- #85
As you showed in the demo, for a struct, the encoded value is “user[name]=acme user[addr][postcode]=1234
user[addr][city]=SFO”, If I don t want to use [] to split, but . , like“user.name=acme user.addr.postcode=1234 ...
wqshr12345
- 1
- Opened on Aug 8, 2022
- #79
I have a Go client that is communicating with a server that follows RFC 1738 URL encoding rules. RFC 1738 has since been
updated (replaced) by RFC 3986, which is what Go seems to be using, at least in ...
asarkar
- 7
- Opened on Feb 14, 2022
- #64
Hello! I expect the following example to print int=23 foo=bar, but instead it prints int=23. It looks like this was
previously working in #45, so there might have been a regression.
package main
import ...
zakcutner
- 7
- Opened on Dec 2, 2021
- #62
Hi Thanks for your work!
Code sample from README states:
type Options struct {
Query string `url: q `
ShowAll bool `url: all `
Page int `url: page `
}
opt := Options{ foo , true, 2 } ...
achesco
- 2
- Opened on Nov 8, 2021
- #61
👋🏻
I m trying to encode:
type Example struct
Services []string `url: services,omitempty `
}
But I m seeing the encoded values equate to services=A services=B as apposed to what I was hoping to ...
Integralist
- 2
- Opened on Nov 2, 2021
- #60
Hi!
For empty slice without any delimiter we have empty values on result and so Encode produce empty string
type T struct {
Values []string `url: filter `
}
But for slice with custom ...
dselyuzhitskiy
- 2
- Opened on Aug 22, 2021
- #57

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.