You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.
I may be using the API incorrectly. binclude.Include always expects string literal.
binclude.Include(fmt.Sprintf("%s", "./out/myexe"))
Does not work and give error
[binclude] 2020/06/26 06:09:47 argument is not string literal
Is there a way to avoid this, I am looking for reading the file name from say input json
The text was updated successfully, but these errors were encountered:
This is not possible, because binclude runs before any of the code runs/ you cannot include files at runtime.
What exactly are you trying to achieve?
I could add support for let's say binclude.IncludeFromFile("files.text") which reads a text file that contains the paths to include. Would that solve the issue you are having?
lu4p
changed the title
argument is not string literal
Include expects a string literal
Jun 26, 2020
lu4p
changed the title
Include expects a string literal
Include expects a constant string literal
Jun 26, 2020
I may be using the API incorrectly. binclude.Include always expects string literal.
binclude.Include(fmt.Sprintf("%s", "./out/myexe"))
Does not work and give error
[binclude] 2020/06/26 06:09:47 argument is not string literal
Is there a way to avoid this, I am looking for reading the file name from say input json
The text was updated successfully, but these errors were encountered: