Module systems really ought to allow renaming on import. (Such as: rename individual functions, add a prefix to all of the functions, or even do a regexp style replace of all existing prefixes if any.)
But unfortunately, from a quick glance it looks like Go's doesn't, is that correct?
Comments
Module systems really ought to allow renaming on import. (Such as: rename individual functions, add a prefix to all of the functions, or even do a regexp style replace of all existing prefixes if any.)
But unfortunately, from a quick glance it looks like Go's doesn't, is that correct?
You can rename the package on import http://play.golang.org/p/V01jD_EZyX
It does. See http://golang.org/ref/spec#Import_declarations