package main func forwardError(err error, to *error) { if err != nil { *to = err } }