Use the sh library for parsing, expansion, and interpretation
masterThe sh library provides tools for working with shell scripts in Go. Depending on your goal, use the following packages:
- Parsing and Inspection: Use the
syntaxpackage to parse shell scripts and inspect their structure. - Shell Expansions: Use the
shellpackage for high-level operations like performing shell expansions on strings. - Interpretation: Use the
interppackage to interpret or run shell scripts.