Ecosyste.ms: Packages

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

Top 9.1% on proxy.golang.org

proxy.golang.org : github.com/jimeh/go-render

Package render provides a simple and flexible solutio to render a value to a io.Writer using different formats based on a format string argument. It is designed around using a custom type/struct to render your output. Thanks to Go's marshaling interfaces, you get JSON, YAML, and XML support almost for free. While plain text output is supported by the type implementing io.Reader, io.WriterTo, fmt.Stringer, or error interfaces, or by simply being a type which can easily be type cast to a byte slice. Originally intended to easily implement CLI tools which can output their data as plain text, as well as JSON/YAML with a simple switch of a format string. But it can just as easily render to any io.Writer. The package is designed to be flexible and extensible with a sensible set of defaults accessible via package level functions. You can create your own Renderer for custom formats, or create new handlers that support custom formats.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/jimeh/go-render
Keywords: go, golang, golang-module, golang-package, marshaling, render
License: MIT
Latest release: about 1 month ago
Namespace: github.com/jimeh
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 9 days ago