Go style:
```go
for _, header := range(headers) {
    conn.Write(header)
    conn.Write([]byte("\n"))
}
```