Conflict in imports

Hello,
When I am trying to use the below two packages, they seem conflict each other. Is there any way, I can use them in a single package?

import (
“context”
GitHub - gorilla/context: A golang registry for global request variables.
)

Error
#13 64.31 controllers/handlers.go:27:2: context redeclared in this block
#13 64.31 controllers/handlers.go:5:2: other declaration of context

Hi @afsal983 ,

Yes, you can use an alia’s for one of the packages, for example:

import (
    “context”
    contx "http://github.com/gorilla/context"
)
1 Like

Dear Christophberger,
It worked . Thank you very much for your time.

I used
ctx “GitHub - gorilla/context: A golang registry for global request variables.