2 ms·
As others have said, gorename does the type-safe renaming... it's relatively new, so it's understandable that you may not have heard of it. Moving a file doesn
by NateDad 12y ago
As others have said, gorename does the type-safe renaming... it's relatively new, so it's understandable that you may not have heard of it.
Moving a file doesn't really make any sense in Go. Files are not units of code that you'd move... I presume you mean moving an exported type from one package to another. I don't believe that gorename can do that right now, but it seems like it would be pretty easy to add to gorename.