Closed wjimenez5271 closed 7 years ago
The package name of logrus package is logrus
, not log
: https://github.com/sirupsen/logrus/blob/master/logger.go#L1
This is what you can do without alias:
package main
import (
"github.com/Sirupsen/logrus"
)
func _() {
logrus.Println("foo")
}
I'm using an API compatible alternative to the standard go logging library,
logrus
, however unless I use a import alias like so:package resolution breaks. I'd like to be able to simply import the package directly
and then use the API as usual:
and see the IDE be able to resolve
log
to thelogrus
package.