News for hackers. Stuff that matters.
Re:Golang Is Good, Structure Is Bad by alvil on Sunday October 01, 2017 @10:40AM (#15378065)
You can also use dot

  import (
          . "fmt"
  )
  
  ....
  
  // now call function without prefix
  Println("Read more docs")
Re:Golang Is Good, Structure Is Bad by nkozyra on Sunday October 01, 2017 @10:56AM (#15378138)
Obviously 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!") }