How to change the import names to as I wish rather "github.com/xxx/xx"?

Is there anyway to change the import names from “github.com/xxx/xxx” to “common/xxx”(something as I want). My requirement is, I don’t want to see these github.com/xxx/xxx in the build file to avoid the complete details about what I’m using if anyone opens the go build file in text editor.

1 Like

Use another repository hosted than GitHub.

1 Like

Why would you not want them to see what you’re using?

1 Like

I just want to share .exe file, and I used multiple 3rd party libraries which are from github.com. So, I don’t want client to be known what and all I’m using especially these github imports, these imports looks like an exact url, so they can copy and paste in browser and can reach the repo. (.exe can be opened in notepad). I want to prevent it.

1 Like

Then don’t use those packages. Or alternatively vendor them under another name.

But check the license first if you are allowed to change them without redistributing them. As you’ll need to change imports in those libraries as well…

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.