uchiiii / csv2md Goto Github PK
View Code? Open in Web Editor NEWconverter from csv to markdown
License: MIT License
converter from csv to markdown
License: MIT License
$ go install github.com/uchiiii/csv2md@latest
go: downloading github.com/uchiiii/csv2md v0.0.0-20201119135353-c92255c1229e
go: github.com/uchiiii/csv2md@latest: github.com/uchiiii/[email protected]: parsing go.mod:
module declares its path as: csv2md
but was required as: github.com/uchiiii/csv2md
,条件(✕ 安全ライン以下、◯安全ライン以上),,,,,期待値,,,備考,
パターン 1,0,✕,✕,✕,✕,あり,あり,欠品見込み,,
This input will give you wrong markdown.
Empty csv ends up with panic.
output:
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
main.colMaxSize(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/horiuchiryousuke/go/src/github.com/uchiiii/csv2md/convert.go:107 +0x14a
main.ArrayToMd(0x0, 0x0, 0x0, 0xc0000a23c0, 0x0, 0x0, 0x0, 0x0)
/Users/horiuchiryousuke/go/src/github.com/uchiiii/csv2md/convert.go:61 +0x5a
main.Convert(0x7ffeefbff63f, 0x3f, 0xc0000a23c0, 0x1181f57, 0xc0000a23c0, 0x0, 0x0)
/Users/horiuchiryousuke/go/src/github.com/uchiiii/csv2md/convert.go:38 +0xb1
main.ConvertAll(0xc0000a23c0, 0x0, 0x0)
/Users/horiuchiryousuke/go/src/github.com/uchiiii/csv2md/convert.go:18 +0x74
main.main.func1(0xc0000c4440, 0x7ffeefbff63f, 0x3f)
/Users/horiuchiryousuke/go/src/github.com/uchiiii/csv2md/main.go:40 +0xcc
github.com/urfave/cli/v2.(*App).RunContext(0xc000122000, 0x122b480, 0xc0000a0008, 0xc0000ae000, 0x2, 0x2, 0x0, 0x0)
/Users/horiuchiryousuke/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:315 +0x6be
github.com/urfave/cli/v2.(*App).Run(...)
/Users/horiuchiryousuke/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:215
main.main()
/Users/horiuchiryousuke/go/src/github.com/uchiiii/csv2md/main.go:49 +0x39a
input csv:
First Name,Last Name,Location,Allegiance
Mance,Rayder,North of the Wall,Wildlings
Margaery,Tyrell,"[\"The Reach\"
]",House Tyrell
Danerys,Targaryen,Meereen,House Targaryen
Tyrion,Lannister,King's Landing,House Lannister
error:
2020/05/18 22:25:17 record on line 3: wrong number of fields
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.