Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Techniques we will learn

  • concatenate
  • CLI pipeline - output to a file with >

Code we will use from the standard library

This allows us to create a file.

func Create(name string) (*File, error)

The defer keyword allows us to defer the execution of a statement until the function in which we have placed the defer statement returns.


This allows us to copy from from a source to a destination.

func Copy(dst Writer, src Reader) (written int64, err error)

NewReader returns a new Reader reading from s.

func NewReader(s string) *Reader

Args is a variable from package os. Args hold the command-line arguments, starting with the program name.

var Args []string