4 ms·
You can also use dot import ( . "fmt" ) .... // now call function without prefix Println("Read more docs")
by alvil 9y ago
You can also use dot
import (
. "fmt"
)
....
// now call function without prefix
Println("Read more docs")
- nkozyra 9y agoObviously this is fine only if you feel safe that no two imported packages share the same function/variable names. import ( . "fmt" . "log" ) func main() { Println("broken!") }