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

Discovering the Filesystem

This chapter contains the following recipes:

  • Getting file information
  • Creating temporary files
  • Writing the file
  • Writing the file from multiple goroutines
  • Listing a directory
  • Changing file permissions
  • Creating files and directories
  • Filtering file listings
  • Comparing two files
  • Resolving the user home directory

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