Skip to content

Dot option support for nested struct #9

Description

@rkdgusxo66

Hello
this library has been very helpful in our project.

Currently, nested structs are encoded using bracket notation
However, some APIs require dot-notation keys insted, such as

user.from=1601623397728
user.verified=true

Proposed Feature

Introduce an optional tag modifier "dot":

type Query struct {
    User User `qs:"user,dot"`
}

Expected output:
user.from=1601623397728&user.verified=true

Thank you for considering this feature.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions