yukithm / json2csv

Convert JSON to CSV (go package and command line tool)
MIT License
83 stars 30 forks source link

Issue when running go get #8

Open petems opened 4 years ago

petems commented 4 years ago
$ go get github.com/yukithm/json2csv/cmd/json2csv
# github.com/yukithm/json2csv/cmd/json2csv
go/src/github.com/yukithm/json2csv/cmd/json2csv/main.go:68:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/yukithm/json2csv/cmd/json2csv/main.go:73:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/yukithm/json2csv/cmd/json2csv/main.go:77:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/yukithm/json2csv/cmd/json2csv/main.go:91:13: cannot use func literal (type func(*cli.Context)) as type cli.ActionFunc in assignment
go/src/github.com/yukithm/json2csv/cmd/json2csv/main.go:105:29: invalid operation: c.Args()[0] (type cli.Args does not support indexing)
go/src/github.com/yukithm/json2csv/cmd/json2csv/main.go:106:36: invalid operation: c.Args()[0] (type cli.Args does not support indexing)
dolmen commented 4 years ago

@petems Which Go version?

shadowkrusha commented 3 years ago

I am having the same issue with Go 1.15.2

petems commented 3 years ago
go version
go version go1.15.4 darwin/amd64