Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude "main" package #14

Open
CaledoniaProject opened this issue Jun 17, 2019 · 2 comments
Open

Exclude "main" package #14

CaledoniaProject opened this issue Jun 17, 2019 · 2 comments

Comments

@CaledoniaProject
Copy link

My go project file structure is like the following:

src/main/main.go
src/package1/...
src/package2/..

However gobfuscate processed all packages, so I had to rename it back to main and build it.

Can you add an argument to exclude certain package names?

@unixpickle
Copy link
Owner

Is an argument necessary, or would you rather the tool explicitly noticed if a package was called "main" and didn't rename it?

@CaledoniaProject
Copy link
Author

CaledoniaProject commented Jun 17, 2019

Since the main function in the main package is the entrypoint of a go program, I usually build the program like this:

GOPATH=$PWD go build src/main/main.go

So if the main directory is renamed I will need to locate that directory first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants