This question makes no sense to me.  If your code actually 
*uses* "github.com/installed-package" then it will fail to build or run 
without it.  On the other hand, if it doesn't use it, then just remove the 
import (the compiler will complain about unused imports anyway)

I also don't know what you mean by "keep referencing" (you only need to 
import it once in a given source file), nor the "security reasons" you 
mention.

Can you be more specific about what exactly you're trying to do?  Can you 
point to the real code in question?

On Monday, 5 December 2022 at 10:46:17 UTC loji...@gmail.com wrote:

> Hello Everyone,
> I would like to install a Golang Github package, but I do not want to keep 
> referencing the installed package in the "imports" section of the code - 
> for security reasons, and because I want my code to be able to run without 
> those references. Does anyone know if there is a way to do this?
>
> For example: 
>
> import (    
> "log"    
> "net/http"    
> "github.com/installed-package?"
> )
>
> So, how can I remove the "github.com/installed-package"  reference above 
> and still be able to run the package?
>
> Regards,
>
> Snot-Bag
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/1a747ce2-8cbc-496d-a3bb-65211315e024n%40googlegroups.com.

Reply via email to