The Standard Library Blog2017-02-20T13:12:11+00:00http://thestandardlibrary.com/Daniel Huckstepdarkhelmet@darkhelmetlive.comThe Go Package, How Meta2013-03-10T00:00:00+00:00http://thestandardlibrary.com/2013/03/10/go-package<h2 id="the-go-package-how-meta">The Go Package, How Meta</h2>
<p><small>10 March 2013</small></p>
<hr />
<p>I think this chapter is my favorite so far. Not too many languages have a usable library to parse and examine the source code of the language itself. Or if they do, they aren’t as well designed as the <code class="highlighter-rouge">go</code> package.</p>
<p>The new chapter has 5 great examples, with some great real world use cases. You might not use them every day, but they can definitely improve your understanding of the language and might just come in handy. I’ll be turning one of the examples into a blog post, but if you want the whole things you’ll need to <a href="https://leanpub.com/go-thestdlib">pick up a copy</a>.</p>
<h3 id="need-a-copy">Need a copy?</h3>
<p>Head over <a href="/go.html">here</a>. A mere <strong>$29</strong> gets you all 34 chapters and 398 pages of <a href="/go.html">Go, The Standard Library</a>.</p>
<p>Leanpub will hand craft your book into <strong>PDF</strong>, <strong>MOBI</strong>, and <strong>EPUB</strong> formats, for reading on all your devices. With <strong>No DRM</strong>.</p>
<p>If you’re not ready yet, maybe you’re waiting for more, there’s still a <a href="http://samples.leanpub.com/go-thestdlib-sample.pdf">Sample PDF</a> to grab with a couple chapters. Give it a look. If it’s your thing, pick up a full copy, and get free updates for life.</p>
OHAI. THREE MOAR CHAPTURS - expvar, flag, and fmt2013-01-26T00:00:00+00:00http://thestandardlibrary.com/2013/01/26/three-moar-chapters<h2 id="ohai-three-moar-chapturs---expvar-flag-and-fmt">OHAI. THREE MOAR CHAPTURS - expvar, flag, and fmt</h2>
<p><small>26 January 2013</small></p>
<hr />
<p>It’s been a while, I just can’t seem to find a good flow for writing, but there are three new chapters out.</p>
<p>The <strong>expvar</strong>, <strong>flag</strong> and <strong>fmt</strong> chatpers are squared away and ready for your viewing. They’re all solid packages with 9 examples spanning the 3 chapters. Every Go developer should be familiar with these packages, and the best way to do that is <a href="https://leanpub.com/go-thestdlib">pick up a copy</a>.</p>
<h3 id="need-a-copy">Need a copy?</h3>
<p>Check out <a href="/go.html">this page</a>. A measely <strong>$29</strong> gets you all 34 chapters and 398 pages of <a href="/go.html">Go, The Standard Library</a>.</p>
<p>Leanpub will lovingly assemble your book into <strong>PDF</strong>, <strong>MOBI</strong>, and <strong>EPUB</strong> formats, for easy reading anywhere. With <strong>No DRM</strong>.</p>
<p>If you’re not ready yet, maybe you’re waiting for more, there’s still a <a href="http://samples.leanpub.com/go-thestdlib-sample.pdf">Sample PDF</a> to grab with a couple chapters. Give it a look, and if you dig it, pick up a copy, and get free updates for life.</p>
<p>I even updated the sample with an extra chapter from this update!</p>
Three New Chapters - debug, encoding, and errors2012-11-28T00:00:00+00:00http://thestandardlibrary.com/2012/11/28/three-new-chapters<h2 id="three-new-chapters---debug-encoding-and-errors">Three New Chapters - debug, encoding, and errors</h2>
<p><small>28 November 2012</small></p>
<hr />
<p>Three new chapters dude! Excellent!</p>
<p><em>guitar solo</em></p>
<p>Okay so I finally got some more content out, the <strong>debug</strong>, <strong>encoding</strong>, and <strong>errors</strong> chapters. The last one is really short, but the other two are pretty huge.</p>
<h3 id="need-a-copy">Need a copy?</h3>
<p>Look no further than <a href="/go.html">this page</a>. For only <strong>$29</strong> you can get all 34 chapters and 398 pages of <a href="/go.html">Go, The Standard Library</a>. Purchases help keep me motivated :)</p>
<p>Leanpub will lovingly assemble the bytes into <strong>PDF</strong>, <strong>MOBI</strong>, and <strong>EPUB</strong> formats, for easy reading anywhere.</p>
<p>If you’re not ready yet, maybe you’re waiting for more, there’s still a <a href="http://samples.leanpub.com/go-thestdlib-sample.pdf">Sample PDF</a> to grab with a couple chapters. Give it a look, and if you dig it, pick up a copy, and get free updates for life.</p>
DEBUG ALL THE THINGS!2012-10-28T00:00:00+00:00http://thestandardlibrary.com/2012/10/28/debug-package<h2 id="debug-all-the-things">DEBUG ALL THE THINGS!</h2>
<p><small>28 October 2012</small></p>
<hr />
<p>The <code class="highlighter-rouge">debug</code> package lets you poke around various file formats and see what’s inside. Formats like Mach-O, ELF, Windows PE, and Go specific files created by the gc family of compilers.</p>
<p>And I’ve finally wrapped up the debug chapter. It’s good to go.</p>
<h3 id="can-i-get-in-on-this">Can I get in on this?</h3>
<p>Oh yes you sure can. <a href="/go.html">Follow me</a> and give the product page a once over. Convinced? Sure you are. Follow the <a href="https://leanpub.com/go-thestdlib">Buy Now</a> and pick up your copy of <a href="/go.html">Go, The Standard Library</a> for only <strong>$29</strong>. I’ll :heart: you forever.</p>
<p>You’ll get 34, washed, soaked, and rinsed, fresh from the Leanpub servers, in all your favorite formats: <strong>PDF</strong>, <strong>MOBI</strong>, and <strong>EPUB</strong>.</p>
<p>Wallet telling you no? I can understand. $29 isn’t $1 app on the app store, but this book gives you so much more, and will keep on giving (did I mention, there’s free updates for life?). <a href="http://samples.leanpub.com/go-thestdlib-sample.pdf">Download the free Sample PDF</a> and see what you think. If you like what you see, I’d appreciate the support.</p>
INSERT INTO chapters (title) VALUES ('database')2012-09-12T00:00:00+00:00http://thestandardlibrary.com/2012/09/12/database-package<h2 id="insert-into-chapters-title-values-database">INSERT INTO chapters (title) VALUES (‘database’)</h2>
<p><small>12 September 2012</small></p>
<hr />
<p>The <code class="highlighter-rouge">database</code> chapter is wrapped up to a point where I can publish it. It’s a pretty straightforward package, and right now I cover using it as you’d expect. I’ll get an example of writing a driver for it later.</p>
<p>This new chapter adds another 10 pages to the book, and of course the updated code can be downloaded from Github using the links in Introduction.</p>
<h3 id="but-i-want-to-read-it">But I want to read it!!!</h3>
<p>Well, dear sir or madam, head over <a href="/go.html">here</a> and pick up your copy of <a href="/go.html">Go, The Standard Library</a> for only <strong>$29</strong>. I’d really appreciate it.</p>
<p>You’ll get this brand new chapter, hot off the Leanpub presses, in <strong>PDF</strong>, <strong>MOBI</strong>, and <strong>EPUB</strong> formats, to top off 34 complete chapters full of Go goodness.</p>
<p>If you’re not ready to open up your wallet just yet, grab the <a href="http://samples.leanpub.com/go-thestdlib-sample.pdf">Sample PDF</a> and check out a couple chapters. Give it a look, and if you dig it, pick up a copy, and get free updates for life.</p>
Gur pelcgb Puncgre Vf Bhg!2012-08-15T00:00:00+00:00http://thestandardlibrary.com/2012/08/15/crypto-package<h2 id="gur-pelcgb-puncgre-vf-bhg">Gur pelcgb Puncgre Vf Bhg!</h2>
<p><small>15 August 2012</small></p>
<hr />
<p>The <code class="highlighter-rouge">crypto</code> chapter is out, and if you thought the container chapter was big, you’ve got another thing coming.</p>
<p>This bad boy pushes the book size up to 100 pages, and on top of the <strong>14</strong> regular examples, there is <strong>15th</strong> example that shows how a <em>timing attack</em> works.</p>
<h3 id="heres-the-kicker">Here’s the kicker…</h3>
<p>I can’t keep selling this 398 page book with 34 out of chapters for only $29, so I had to bump the price up to <strong>$29</strong>.</p>
<p>Madness!</p>
<p><img src="/img/leonidas.jpg" alt="This is value!" /></p>
<p>If you don’t think this book is worth your <strong>$29</strong>, grab the <a href="http://samples.leanpub.com/go-thestdlib-sample.pdf">Sample PDF</a> and check out a couple chapters.</p>
<p>Obviously I encourage you to pick it up, and learn how to use the crypto by <a href="/go.html">getting Go, The Standard Library</a> for only $29. Odds are, that price will go up in the future even a bit more, so get your hands on a copy now before it does!</p>
The container Chapter Is Out!2012-07-18T00:00:00+00:00http://thestandardlibrary.com/2012/07/18/container-chapter<h2 id="the-container-chapter-is-out">The container Chapter Is Out!</h2>
<p><small>18 July 2012</small></p>
<hr />
<p>The <code class="highlighter-rouge">container</code> chapter is out, and it’s a big one.</p>
<p>I’m not kidding. Each of <code class="highlighter-rouge">heap</code>, <code class="highlighter-rouge">list</code>, and <code class="highlighter-rouge">ring</code> has their own example, along with a more real world example. It starts on page 52 and ends on 65.</p>
<p>While the Go language has slices and maps built in, sometimes you need some specific structure to solve a problem. The container package has got you covered for a few of those structures.</p>
<p>Learn how best to use this package by <a href="/go.html">getting Go, The Standard Library</a> for only <strong>$29</strong>. That price will definitely be going up in the future so get your hands on a copy now before it does!</p>
New Chapter! The compress Package2012-06-10T00:00:00+00:00http://thestandardlibrary.com/2012/06/10/compress-chapter<h2 id="new-chapter-the-compress-package">New Chapter! The compress Package</h2>
<p><small>10 June 2012</small></p>
<hr />
<p>Have big things that you need to make smaller? Look no further than the <code class="highlighter-rouge">compress</code> package. It’s the next chapter available in <a href="/go.html">Go, The Standard Library</a>.</p>
<p>Since each sub-package in the <code class="highlighter-rouge">compress</code> package follows basically the same interface, I tried something different this time. I used the <code class="highlighter-rouge">flag</code> package (which we’ll see later) to control what to do. The main example file uses all the different compression packages in one foul swoop, instead of separate files for each algorithm. The <code class="highlighter-rouge">crypto</code> package will be similar.</p>
<p>I also included a good real-world example: <strong>Accept-Encoding: gzip</strong></p>
<p>It looks at building <code class="highlighter-rouge">gzip</code> support into your webserver. It’s super simple thanks to how Go deals with IO.</p>
<p>Anyway, if you want to check it out, <a href="/go.html">get your copy of Go, The Standard Library</a> now for only <strong>$29</strong>. The book’s only getting bigger!</p>