Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 4.4% on proxy.golang.org
Top 1.4% dependent packages on proxy.golang.org
Top 2.1% dependent repos on proxy.golang.org
Top 8.8% forks on proxy.golang.org

proxy.golang.org : github.com/sonh/qs

Package qs encodes structs into url.Values. Package exports `NewEncoder()` function to create an encoder. Use `WithTagAlias()` func to register custom tag alias (default is `qs`) Encoder has `.Values()` and `Encode()` functions to encode structs into url.Values. Supported data types: Example Ignoring Fields Omitempty By default, package encodes time.Time values as RFC3339 format. Including the `"second"` or `"millis"` option to signal that the field should be encoded as second or millisecond. Slice and Array default to encoding into multiple URL values of the same value name. Including the `comma` option to signal that the field should be encoded as a single comma-delimited value. Including the `bracket` option to signal that the multiple URL values should have "[]" appended to the value name. The `index` option will append an index number with brackets to value name All nested structs are encoded including the parent value name with brackets for scoping. Custom type Implement `EncodeParam` to encode itself into query param. Implement `IsZero` to check whether an object is zero to determine whether it should be omitted when encoding. Limitation

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/sonh/qs
Keywords: encoder, encoding, form, form-data, go, query-parameters, querystring, url-parameters
License: MIT
Latest release: 5 months ago
First release: over 3 years ago
Namespace: github.com/sonh
Dependent packages: 13
Dependent repositories: 6
Stars: 66 on GitHub
Forks: 4 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 2 days ago

    Loading...
    Readme
    Loading...