Why the following works
package main
import (
"os"
cli "github.com/urfave/cli"
)
func main() {
cli.NewApp().Run(os.Args)
}
but when I change the cli
import to following as suggested in https://github.com/urfave/cli
import (
"os"
cli "gopkg.in/urfave/cli.v2"
)
It gives this error undefined: cli.NewApp