When a function returns a value and a possible error, the common golang idiom (and what we do throughout the rest of the Heka code) is to return the value first and the error second. So this would be

```go
func parseMessage(message []byte) (Stat, error) {
```