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

I get an error after compile golang [Question] #1164

Closed
hs-dev-web opened this issue Jan 3, 2023 · 2 comments
Closed

I get an error after compile golang [Question] #1164

hs-dev-web opened this issue Jan 3, 2023 · 2 comments
Assignees
Labels

Comments

@hs-dev-web
Copy link

Want to prioritize this issue? Try:

issuehunt-to-marktext


What's your scenario? What do you want to achieve?
Your answer here

When I compile golang app do the basic_policy.csv and rbac_model.conf files get included in binary file as well? or should I place them next to binary file? for the app to work?

because i get an error related to casbin after compile

@casbin-bot
Copy link
Member

@tangyang9464 @JalinWang

@hsluoyz
Copy link
Member

hsluoyz commented Jan 3, 2023

@hs-dev-web no, you need to find a way to read your files, or using Go embed.

It's just like normally reading files in Go, it's not related to Casbin.

You can also choose not using files:

@hsluoyz hsluoyz closed this as completed Jan 3, 2023
@hsluoyz hsluoyz removed the bug label Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants