Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 310 Bytes
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)
}
}