How to Create PDF Documents · Applied Go
阿新 • • 發佈:2018-12-29
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 get
ting the package, we can start coding right away.