Chapter 3Working with Files in Go
Working with files is one of the most frequent tasks you have to perform when building your command-line tools. Your programs pull data from files and also save results in them. This is particularly important when working with Linux or Unix because system resources are represented as files.
To get comfortable working with files in CLI apps, you’ll develop a tool to preview Markdown files locally, using a web browser.
Markdown is a lightweight markup language that uses plain text with special syntax to represent formatting compatible with HTML. It’s used to write blog articles, comments, and README files for open source projects like those available in GitHub. Since it uses plain text, writing Markdown requires ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access