strip / add error handling to a go file