json2csv
json2csv copied to clipboard
Issue when running go get
$ 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)
@petems Which Go version?
I am having the same issue with Go 1.15.2
go version
go version go1.15.4 darwin/amd64