I honestly am not sure I follow what your concern is with that line of code. list.New() looks extremely clean to me.
func ReadFile(filename String) {
file := file.Open(filename)
}
In Go you have to invent a new name, so invariably you will see a lot of: theFile := file.Open(filename)
aFile := file.Open(filename)
readFile := file.Open(filename)
depending on who wrote the code. f = file.open("a.txt")
out_file = file.open("b.txt", file.WRITE) typedef int foo;
foo main() {
foo foo = 0;
return foo;
}a couple of times I just changed the name of the import, as you sometimes do in Python:
import (
urllib "net/url"
)url := urllib.QueryEscape(...)
tada!