(err error)
| 63 | } |
| 64 | |
| 65 | func IsErrKeyAlreadyExist(err error) bool { |
| 66 | _, ok := err.(ErrKeyAlreadyExist) |
| 67 | return ok |
| 68 | } |
| 69 | |
| 70 | func (err ErrKeyAlreadyExist) Error() string { |
| 71 | return fmt.Sprintf("public key already exists [owner_id: %d, content: %s]", err.OwnerID, err.Content) |
no outgoing calls
no test coverage detected