Cli: v1 bug: ( cannot use []cli.Author literal (type []cli.Author) as type []*cli.Author in assignment 0)

Created on 28 Nov 2019  路  4Comments  路  Source: urfave/cli

Checklist

app.Authors = []cli.Author{{
        Name:"sgfoot",
        Email:"[email protected]",
}}

This code window10 system compilation error , but linux64 system compilation is ok, why?

arev1 kinbug statutriage

All 4 comments

@yezihack there isn't nearly enough information here for me to help you, please fill out the entire issue template when creating a new issue. I'm closing this b/c there isn't enough detail here.

Also, just from the title

cannot use []cli.Author literal (type []cli.Author) as type []*cli.Author in assignment

I can tell that you're probably missing an & somewhere.

I think you are mixing differenr versions of the library between the machines

yes, mixing different version

Make sure to run go get -u github.com/urfave/cli to update it if you are not using go modules.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krostar picture krostar  路  5Comments

lynncyrin picture lynncyrin  路  3Comments

errashe picture errashe  路  3Comments

lynncyrin picture lynncyrin  路  5Comments

millken picture millken  路  5Comments