Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pojntfx/csv2go
Generates Go code containing a multi-dimensional array with the contents of a CSV file.
https://github.com/pojntfx/csv2go
code-generation csv go golang
Last synced: about 2 months ago
JSON representation
Generates Go code containing a multi-dimensional array with the contents of a CSV file.
- Host: GitHub
- URL: https://github.com/pojntfx/csv2go
- Owner: pojntfx
- License: agpl-3.0
- Created: 2020-09-08T14:46:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-26T03:22:52.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T11:52:40.604Z (8 months ago)
- Topics: code-generation, csv, go, golang
- Language: Go
- Homepage: https://pojntfx.github.io/csv2go/
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# csv2go
Generates Go code containing a multi-dimensional array with the contents of a CSV file.
## Overview
`csv2go` is a Go code generator that takes a CSV file as it's input and creates a multidimensional array is it's output.
## Installation
### Prebuilt Binaries
Linux, macOS and Windows binaries are available on [GitHub Releases](https://github.com/pojntfx/csv2go/releases).
### Go Package
A Go package [is available](https://pkg.go.dev/mod/github.com/pojntfx/csv2go).
## Usage
```bash
% csv2go -help
Usage of csv2go:
-in string
Path to the CSV input file (default "data.csv")
-out string
Path of the generated output file (default "csv.go")
-package string
Package name of the generated output file (default "csv")
```## License
csv2go (c) 2020 Felicitas Pojtinger
SPDX-License-Identifier: AGPL-3.0