Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: add tag option string for struct type filed #123

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
LYY committed Aug 16, 2024
commit a841d7753d1f17fb50bc3d13dfb9a9461baf285c
6 changes: 3 additions & 3 deletions query/encode_test.go
Original file line number Diff line number Diff line change
@@ -747,11 +747,11 @@ func TestParseTag(t *testing.T) {
}

type customStructString struct {
V string
inner string
}

func (s customStructString) String() string {
return s.V
return s.inner
}

func TestValues_CustomStructStringValue(t *testing.T) {
@@ -769,7 +769,7 @@ func TestValues_CustomStructStringValue(t *testing.T) {
struct {
V customStructString `url:"v"`
}{},
url.Values{"v[V]": {""}},
url.Values{},
},
}