Iris: 銆恥ndefined: iris.Dir銆慠un example project login error: undefined: iris.Dir

Created on 6 Aug 2020  路  3Comments  路  Source: kataras/iris

Describe the issue you are facing or ask for help
Put login project out of iris/_example/mvc folder, run main.go, report an error:
#command-line-arguments
./main.go:31:27: undefined: iris.Dir

Need help!!

question

Most helpful comment

Hello @zfanmy, it's easy you just need to upgrade your Iris to the master one, because:
the default repository 's branch contains examples for the master branch, which is under active development status. So, in order to grab it in your projects you must run a go get command, as the README.md says, use the following code:

$ go get -u github.com/kataras/iris/v12@master

Now you are able to run all the master's examples.

However, If you are looking for the latest stable release check the v12.1.8 branch instead.

All 3 comments

Hello @zfanmy, it's easy you just need to upgrade your Iris to the master one, because:
the default repository 's branch contains examples for the master branch, which is under active development status. So, in order to grab it in your projects you must run a go get command, as the README.md says, use the following code:

$ go get -u github.com/kataras/iris/v12@master

Now you are able to run all the master's examples.

However, If you are looking for the latest stable release check the v12.1.8 branch instead.

Hello @zfanmy, it's easy you just need to upgrade your Iris to the master one, because:
the default repository 's branch contains examples for the master branch, which is under active development status. So, in order to grab it in your projects you must run a go get command, as the README.md says, use the following code:

$ go get -u github.com/kataras/iris/v12@master

Now you are able to run all the master's examples.

However, If you are looking for the latest stable release check the v12.1.8 branch instead.

Thank you very much!

You are welcome @zfanmy !

Was this page helpful?
0 / 5 - 0 ratings