rhardih / serve

Simple http server for localhost development with flags for enabling gzip and http2
MIT License
102 stars 11 forks source link

go get fails #4

Closed rene-airtame closed 4 years ago

rene-airtame commented 4 years ago
rene $ go version
go version go1.13.3 darwin/amd64
[~/Code/gcal-test]
rene $ go get github.com/rhardih/serve
# github.com/rhardih/serve
../go/src/github.com/rhardih/serve/serve.go:140:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
        cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/rhardih/serve/serve.go:145:14: cannot use cli.IntFlag literal (type cli.IntFlag) as type cli.Flag in array or slice literal:
        cli.IntFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/rhardih/serve/serve.go:151:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
        cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/rhardih/serve/serve.go:156:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
        cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/rhardih/serve/serve.go:163:13: cannot use func literal (type func(*cli.Context)) as type cli.ActionFunc in assignment
../go/src/github.com/rhardih/serve/serve.go:165:19: invalid operation: c.Args()[0] (type cli.Args does not support indexing)