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

Suggestion: Spaces in flags #22

Open
figsoda opened this issue Jul 14, 2023 · 2 comments
Open

Suggestion: Spaces in flags #22

figsoda opened this issue Jul 14, 2023 · 2 comments

Comments

@figsoda
Copy link
Member

figsoda commented Jul 14, 2023

Instead of

ldflags = [ "-X main.version=${version}" ];

suggest

ldflags = [ "-X" "main.version=${version}" ];

or

ldflags = [ "-X=main.version=${version}" ];
@SuperSandro2000
Copy link
Member

Will this become an error when issuing structured args?

@figsoda
Copy link
Member Author

figsoda commented Jul 21, 2023

I'm not familiar with structured args, but ideally this should be an error, so we don't need hacks like *FlagsArray

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