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

proxy.golang.org : github.com/mohae/struct2csv : v0.0.0-20151122200941-e72239694eae

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 - Documentation - Download - JSON - codemeta.json
purl: pkg:golang/github.com/mohae/struct2csv@v0.0.0-20151122200941-e72239694eae
Published:
Indexed:

    Loading...
    Readme
    Loading...