メモメオ Read

<- https://tour.golang.org/methods/10

<- http://golang.org/search?q=Read#Global

package binary

/src/encoding/binary/binary.go:138

// Read reads structured binary data from r into data.
// Data must be a pointer to a fixed-size value or a slice // of fixed-size values. // Bytes read from r are decoded using the specified byte order // and written to successive fields of the data. // When reading into structs, the field data for fields with // blank (_) field names is skipped; i.e., blank field names // may be used for padding. // When reading into a struct, all non-blank fields must be exported.
func Read(r io.Reader, order ByteOrder, data interface{}) error

package bufio

/src/bufio/bufio.go:152

// Read reads data into p.
// It returns the number of bytes read into p.
// It calls Read at most once on the underlying Reader,
// hence n may be less than len(p).
// At EOF, the count will be zero and err will be io.EOF. func (b *Reader) Read(p []byte) (n int, err error)