# Go Cheatsheet - Format Errors

## Errors


### Return simple error string

```go
return errors.New("Invalid Parameter")
```

### Return string with format

```go
return fmt.Errorf("user %q (id %d) not found", name, id)
```
