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

import _ "github.com/xtls/xray-core/main/distro/all" #59

Open
sachako opened this issue Dec 20, 2024 · 1 comment
Open

import _ "github.com/xtls/xray-core/main/distro/all" #59

sachako opened this issue Dec 20, 2024 · 1 comment

Comments

@sachako
Copy link

sachako commented Dec 20, 2024

This is not an issue, just want to ask you a question.
Can you point me to go docs why this line

_ "github.com/xtls/xray-core/main/distro/all"

is crucial to include transitive dependencies of xray-core in libxray?
Why import "github.com/xtls/xray-core/core" is not enough?

@yiguous
Copy link
Collaborator

yiguous commented Dec 21, 2024

Sorry, I am not skilful in golang. Other libs also use this line too, like AndroidLibXrayLite.

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