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

Top 7.2% on proxy.golang.org
Top 4.8% dependent repos on proxy.golang.org

proxy.golang.org : github.com/dty1er/gtsv

Package gtsv is the package to read TSV formatted text. It is designed to type-specifically use each tsv columns, and easily find row and column number which error happened. This is the example to treat valid TSV. While gt.Next() returns true, you can load column value type-specific, like `gt.Int()` , `gt.String()` . Of course, you can use this with struct. If you change the order to call `gt.String()` and `gt.Int()` , `gt.Error()` will be non-nil because it's not the same as TSV column order. Sometimes, we want to know the error position of these files. If you need it, you can cast `gt.Error()` (this is just a `error`) into `gtsv.Error` to know error position. like this: if cast `err.(gtsv.Error)` succeeded, `Row()` and `Col()` show you error position.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/dty1er/gtsv
License: MIT
Latest release: almost 7 years ago
First release: almost 7 years ago
Namespace: github.com/dty1er
Dependent repositories: 1
Last synced: 5 months ago

    Loading...
    Readme
    Loading...