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

syntax: add a Quote func #727

Merged
merged 1 commit into from
Sep 12, 2021
Merged

syntax: add a Quote func #727

merged 1 commit into from
Sep 12, 2021

Commits on Sep 12, 2021

  1. syntax: add a Quote func

    Similar to strconv.Quote, but with shell syntax.
    See the added godoc for more details.
    
    Unlike strconv.Quote, it needs to return a boolean,
    as not all strings can be represented in shell.
    
    With an example to show and test the basics,
    as well as a fuzz function to verify edge cases.
    
    Fixes #328.
    mvdan committed Sep 12, 2021
    Configuration menu
    Copy the full SHA
    60a01dc View commit details
    Browse the repository at this point in the history