[go-nuts] How to invoke methods with variant interface when you have array of interface?

2016-12-29 Thread jishnu


I am newbie in Go please bear with me 

I have to invoke a method in another package 


*someFunc(query string, args ...interface{})*


I have 2 variable of type *string ,[]interface{} *Is it possible to invoke 
the above method? If yes how?


Regards

Jishnu

-- 

--
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.


[go-nuts] Code-base Refactoring Tool for Go , Move files from packages to sub packages

2016-12-13 Thread jishnu

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.