json2csv icon indicating copy to clipboard operation
json2csv copied to clipboard

cannot instal using go get

Open SVilgelm opened this issue 3 years ago • 0 comments

Hi, I'm trying to install the tool using go get method, but am getting an error:

21-02-03 18:44 % 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)
  • go version go1.15.7 darwin/amd64
  • macOS Big Sure 11.2

SVilgelm avatar Feb 04 '21 04:02 SVilgelm