@xiangli-cmu You can write this easier as:

```go
size, err := entry.encode(w)
if err != nil {
    return -1, err
}
```

That way you don't need to use two lines to declare `size` and `err`.