BurntSushi/xgb — pull request #1 by tones111 (2012-05-28 23:18:44+00:00)
Title: auth: use encoding.binary

This commit cleans up auth.go a bit.

No bufio functionality was used, so the conversion is not necessary.

b is now a slice which prevents an array->slice conversion for each call to getString or getBytes

Use binary.Read() instead of the hand-coded getU16BE.