I advice caution, Go is not Java and does not permit circular dependencies. 
The more packages you have, the greater the chance you have of creating a 
circular dependency. 

On Wednesday, 14 December 2016 00:58:00 UTC+11, jis...@hifx.co.in wrote:
>
>
>
> http://stackoverflow.com/questions/41121448/code-base-refactoring-tool-for-go-move-files-from-packages-to-sub-packages
>
> Currently my code-base have just 1 level of packages , due to the increase 
> in number of components it would make much sense if I use sub packages.Is 
> there any code refactoring tools I could use to achieve this.
>
> Package_1/
>       -- File 1
>       -- File 2
>       -- File 3
>       -- File 4Package_2/
>       -- File 5
>       -- File 6
>       -- File 7
>
> Target structure
>
> Package_1
>       /subpackage1
>                -- File 1
>                -- File 2
>       /subpackage2
>                -- File 3
>                -- File 4Package_2/
>        /subpackage3
>                -- File 5
>                -- File 6
>        /subpackage4
>                -- File 4  
>
> I tried *gomvpkg* https://godoc.org/golang.org/x/tools/cmd/gomvpkg but 
> doesnot support moving files from same package to different package.
>
> ------------------------------
> IMPORTANT: This is an e-mail from HiFX IT Media Services Pvt. Ltd. Its 
> content are confidential to the intended recipient. If you are not the 
> intended recipient, be advised that you have received this e-mail in error 
> and that any use, dissemination, forwarding, printing or copying of this 
> e-mail is strictly prohibited. It may not be disclosed to or used by anyone 
> other than its intended recipient, nor may it be copied in any way. If 
> received in error, please email a reply to the sender, then delete it from 
> your system. 
>
> Although this e-mail has been scanned for viruses, HiFX cannot ultimately 
> accept any responsibility for viruses and it is your responsibility to scan 
> attachments (if any).
>
> ​
> Before you print this email or attachments, please consider the negative 
> environmental impacts associated with printing.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to