Original post

In some code I have been reviewing I see a lot of functions declared as variables outside of the function but I can’t think of any benefit to this. I can only think of negatives, when used in a large file it hides the package name, allows for unnecessary renaming of the function.

` var getData = apackage.GetData

func main(){ data:= getData(“test”) }`