change buffer.go internal, using pointer-chan instead of struct chan
gofmt the code