afsal983
(Muhammed Afsal)
1
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
afsal983
(Muhammed Afsal)
3
Dear Christophberger,
It worked . Thank you very much for your time.
I used
ctx “GitHub - gorilla/context: A golang registry for global request variables.”
system
(system)
Closed
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.