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

Top 7.0% on proxy.golang.org
Top 4.6% dependent packages on proxy.golang.org

proxy.golang.org : github.com/lestrrat-go/byteslice

Package byteslice provides a thin abstraction over `[]byte` types. This package exist to support encoding/decoding `[]byte` slices in JSON serialization/deserialization. Yes, `encoding/json` supports base64 encoding for `[]byte` fields, but there's no way to customize the way these fields get serialized/deserialized -- e.g. with padding or no padding, which characters to use for padding, etc. By using byteslice.Buffer as the field instead of `[]byte` you can change the the way this base64 handling is performed.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/lestrrat-go/byteslice
License: MIT
Latest release: over 2 years ago
First release: over 2 years ago
Namespace: github.com/lestrrat-go
Dependent packages: 1
Stars: 1 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 2 months ago

    Loading...
    Readme
    Loading...