Leanpub Header

Skip to main content

Go, The Standard Library

Real Code. Real Productivity. Master The Go Standard Library

Reach for your language and standard library instead of reaching for external code. Get the most out of your Go distribution and leverage the amazing standard library to solve your programming problems.

Minimum price

$19.00

$29.00

You pay

$29.00

Author earns

$20.88

Cause gets

$2.32
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
524
Readers
420
Pages
About

About

About the Book

Some smart people working at Google came out with a language called Go, and it's got a wicked awesome standard library. The problem is, the standard library of any language plays second fiddle to the syntax and other libraries and come out on Github

With Go, The Standard Library, I give you the tools to take Go by the horns and be productive without installing every library on Github.

Share this book

Categories

Author

About the Author

Daniel Huckstep

I am a code mechanic near Annapolis Royal, NS, Canada.

  • University of Alberta graduate (Software Engineering, 2009)
  • Blogger (technical and other)
  • Gamer (PC, Xbox, DS)
  • Mountain Biker
  • Musician (Guitar)
  • Rocker of dreadlocks (since 2003)
  • Farmer
  • Sneakerhead

I enjoy good food, better wine, and mechanical watches. I work hard and play hard. I get the job done and get it done right the first time. I speak my mind and listen when others speak theirs.

Contents

Table of Contents

Introduction

  1. Target Audience
  2. How To Read This Book
  3. Code In The Book

Thanks

Credits

archive

  1. Meet The Archive Package
  2. Writing tar Files
  3. Writing zip Files
  4. Reading tar Files
  5. Reading zip Files
  6. Caveats

bufio

  1. Is That A Buffer In Your Pocket?
  2. Reading
  3. Writing
  4. Scanning

builtin

  1. Batteries Included
  2. Building Objects
  3. Maps, Slices, And Channels
  4. All The Sizes
  5. Causing And Handling Panics
  6. Complex Numbers

bytes

  1. Bits and Bytes and Everything Nice
  2. Comparison
  3. Searching
  4. Manipulating
  5. Splitting and Joining
  6. Case
  7. Trimming
  8. Buffer
  9. Reader

compress

  1. Honey, I Shrunk The Kids
  2. ALL THE CODE
  3. Accept-Encoding: gzip

container

  1. heap
  2. list
  3. ring
  4. Thread Pool Example
  5. Round Robin Load Balancer Example
  6. Priority Queue Load Balancer Example

crypto

  1. Disclaimer
  2. Block Ciphers
  3. Digital Signatures
  4. Hashes
  5. HMAC
  6. RC4
  7. RSA
  8. TLS/x509
  9. Random Numbers
  10. Constant Time Functions
  11. A Timing Attack In Action
  12. go.crypto
  13. Final Warning

database

  1. Open
  2. Exec
  3. Query
  4. Prepared Statements
  5. Transactions
  6. Example

debug

  1. elf
  2. macho
  3. pe
  4. gosym
  5. dwarf

encoding

  1. ascii85
  2. asn1
  3. base32
  4. base64
  5. binary
  6. csv
  7. gob
  8. hex
  9. json
  10. pem
  11. xml

errors

expvar

flag

  1. The Basic Interface
  2. The *Var Interface
  3. FlagSet
  4. Custom

fmt

  1. Printing
  2. Scanning
  3. Printing Custom Types
  4. Scanning Custom Types

go

  1. Cross Platform Go Code
  2. Introspecting Packages
  3. Lexing Go Code
  4. Parsing Go Code
  5. Analyzing Go Code: Cyclomatic Complexity
  6. Altering Go Code: Mutation Testing

hash

  1. adler32
  2. crc32
  3. crc64
  4. fnv

html

  1. Escape Artist
  2. Templating

image

  1. Converting images formats
  2. Resizing
  3. Cropping
  4. Compositing: Building images from other images
  5. gostagram

index

  1. suffixarray

io

  1. Reading
  2. Writing
  3. Copy
  4. Pipe
  5. io/ioutil

log

  1. Basic Logging
  2. Syslog

math

  1. Big Numbers
  2. Random Numbers

mime

  1. Multipart Parsing
  2. Multipart Generation

net (wip)

  1. mail

os

  1. stdio and DevNull
  2. Permissions
  3. String Expansion
  4. Moving Around the Environment
  5. Inspecting the Environment
  6. Creating and Removing Files and Directories
  7. File IO
  8. FileInfo
  9. Process Creation, Management, and Signals
  10. Users

path

  1. path
  2. path/filepath
  3. find

reflect

  1. Select from an arbitrary number of channels
  2. Write your own enumerable methods
  3. Inspect struct tags

regexp

  1. Matching
  2. Indexes
  3. Capture Groups and Submatches
  4. Replace
  5. io

runtime

  1. Introspection
  2. Goroutines
  3. Memory
  4. Callstack
  5. runtime/debug
  6. runtime/pprof

sort

  1. Basic Sorting
  2. Advanced Sorting
  3. Searching

strconv

  1. Conversions
  2. Appending
  3. Quoting

strings

  1. Querying strings
  2. Into the index
  3. Hey, split it up!
  4. Building and altering strings
  5. Upper and lower case
  6. Trimming
  7. Reader

sync

  1. Once
  2. Mutex
  3. Cond
  4. WaitGroup
  5. Pool
  6. sync/atomic

testing

  1. testing.T
  2. Benchmarking
  3. Examples

text

  1. Let’s build a calculator
  2. Pretty console output
  3. Templating

time

  1. Parsing and Formatting
  2. Duration
  3. Math
  4. Comparisons
  5. time.Timer
  6. Frantic-tick-tick-tick-tick-tick-tick-tock: time.Ticker
  7. Timezones

unicode

  1. Queries
  2. Simple Conversion
  3. UTF-16

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

Causes

Causes Supported

Electronic Frontier Foundation

Electronic Frontier Foundation

Defending your civil liberties in a digital world.

https://www.eff.org/
Based in San Francisco, EFF is a donor-supported membership organization working to protect fundamental rights regardless of technology.
From the Internet to the iPod, technologies are transforming our society and empowering us as speakers, citizens, creators, and consumers. When our freedoms in the networked world come under attack, the Electronic Frontier Foundation (EFF) is the first line of defense. EFF broke new ground when it was founded in 1990—well before the Internet was on most people's radar—and continues to confront cutting-edge issues defending free speech, privacy, innovation, and consumer rights today. From the beginning, EFF has championed the public interest in every critical battle affecting digital rights.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub