I'm wondering if there is any way to import the full contents of a package so that I don't have to prefix calls to things in the package with a package name?
For example, is there a way to replace this:
import "fmt"
func main() {
fmt.Println("Hello, world")
}
with this:
import "fmt"
func main() {
Println("Hello, world")
}
For example,
Playground: https://play.golang.org/p/xl7DIxxMlU5
Output: