Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type PgpinError struct { | |
| Id string `json:"id"` | |
| Message string `json:"message"` | |
| HttpStatus int `json:"-"` | |
| } | |
| func (e PgpinError) Error() string { | |
| return fmt.Sprintf("pgpin: %s: %s", e.Id, e.Message) | |
| } | |
| func Must(err error) { | |
| if err != nil { | |
| panic(err) | |
| } | |
| } |