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

Top 5.6% on proxy.golang.org
Top 3.4% dependent packages on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org
Top 6.3% forks on proxy.golang.org

proxy.golang.org : github.com/mohae/struct2csv

Package struct2csv creates slices of strings out of struct fields. Struct2csv can work with either a struct or a slice of structs, The data can be returned as []string, in the case of a single struct, or [][]string, in the case of a slice of structs, by using struct2csv's encoder and `Marshal`. For writing struct data directly to a CSV file, a writer can be used. `NewWriter` accepts an `io.Writer` and uses it to create a `csv.Writer`, which is used for writing the generated data. The `csv.Writer`'s exported fields are exposed as methods. Fields of Kind Uintptr, Unsafepointer, Chan, Func, and Interface are not supported. Unexported fields will be ignored. Field tags are supported. Struct2csv will look for field tags matching `csv`, unless it's configured to either ignore field tags or use different field tag.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/mohae/struct2csv
License: MIT
Latest release: over 9 years ago
First release: over 9 years ago
Namespace: github.com/mohae
Dependent packages: 3
Dependent repositories: 1
Stars: 21 on GitHub
Forks: 11 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...