Error in Go’s CLI package “urfave/cli”

An error occurs when executing the command

“cannot use cli.StringFlag” error

I got this error.
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)
If you prefix your cli.StringFlag with & as shown in this ticket, you’ll get an error and the It’s gone.

“cannot use Commands” error

cannot use Commands (type []cli.Command) as type []*cli.Command in assignment
If you change []*cli.Command{} to []cli.Command{}, as shown in this ticket, the error will not occur.