To init a buffer:

```go
var buf bytes.Buffer
// or for a pointer
buf := &bytes.Buffer{}
// or
buf := new(bytes.Buffer)
```