https://github.com/nkcmr/csvxform
a tiny utility to templatize csv data
https://github.com/nkcmr/csvxform
csv golang
Last synced: 7 months ago
JSON representation
a tiny utility to templatize csv data
- Host: GitHub
- URL: https://github.com/nkcmr/csvxform
- Owner: nkcmr
- License: mit
- Created: 2019-10-09T20:57:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-09T20:58:01.000Z (over 6 years ago)
- Last Synced: 2025-02-14T21:37:38.295Z (about 1 year ago)
- Topics: csv, golang
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# csvxform
a tiny little utility that recieves CSV (with header) via STDIN and can output the lines according to a template.
example:
```
$ cat my.csv | csvxform '{{ .Col "cust_first_name" }} wants {{ .Col "widget_quant" }} widgets.'
```
## installation
```
$ go install github.com/nkcmr/csvxform
```
## license
Copyright 2019 Nicholas Comer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.