1. 程式人生 > >How to Create PDF Documents · Applied Go

How to Create PDF Documents · Applied Go

The above video is available on the Applied Go channel on YouTube.
This article examines the code used in the video.

Numbers have an important story to tell. They rely on you to give them a clear and convincing voice.

(Stephen Few)

In the last article we exported orders from a spreadsheet and turned them into a report that we saved as CSV data.

Now our boss requests this data as a shiny PDF report on her desk. Let’s do that, no problem! But wait, the standard library has no PDF package, right? Luckily, after a short search, we find a package called gofpdf on GitHub.

After go getting the package, we can start coding right away.