Add NewBufferedWriter, and Flush and Close methods.

Deprecate NewWriter.

See the discussion on
https://groups.google.com/d/topic/golang-dev/nXp12KmMSvM/discussion
2 files changed