O'Reilly logo

Go Standard Library Cookbook by Radomir Sohlich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

In and Out

This chapter contains the following recipes:

  • Reading standard input
  • Writing standard output and error
  • Opening a file by name
  • Reading the file into a string
  • Reading/writing a different charset
  • Seeking a position within a file
  • Reading and writing binary data
  • Writing to multiple writers at once
  • Piping between writer and reader
  • Serializing objects to binary format
  • Reading and writing ZIP files
  • Parsing a large XML file effectively
  • Extracting data from an incomplete JSON array

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required