|
|
|
|
|
by GauntletWizard
3258 days ago
|
|
Go already allows you to rename imports. It's already used in the example provided, actually; the first token is the aliased name of the package. I.e. import intlist "container/list" {Value: int}
import stringlist "container/list" {Value: string}
|
|
So, this basically would boil down to something like C++ templates, with he extra requirement that templates must be instantiated explicitly.