Skip to content

Tutorial code for my video Working with Files in Golang - Simple Command Line Tool

License

Notifications You must be signed in to change notification settings

isensee-bastian/item-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File IO

  • Command line arguments
  • Constants
  • Switch case
  • Exiting the program (return code, error handling)
  • Opening files (for appending, flags, file modes, resource cleanup with defer)
  • Reading from files
  • Writing to files (appending)
  • Using io and bufio packages for higher level reading / writing
  • Truncate and seek for rewriting a file

Releases

No releases published

Packages

No packages published

Languages