func (r mockRepo) Fetch(ID string, v interface{}) error {
	data, ok := r.keys[ID]
	if data == nil || !ok {
		return errKeyNotFound
	}

	return json.Unmarshal(data, &v)
}
// Fetch a key from the repository, or err
Fetch a key from the repository, or err
// Fetch a key from the repository or err
func (r mockRepo) Fetch(ID string, v interface{}) error {
	data, ok := r.keys[ID]
	if data == nil || !ok {
		return errKeyNotFound
	}
	return json.Unmarshal(data, &v)
}
func ( r mockRepo ) Fetch ( ID string , v interface { } ) error { data , ok := r . keys [ ID ] if data == nil || ! ok { return errKeyNotFound } return json . Unmarshal ( data , & v ) }
Fetch a key from the repository, or err
Fetch a key from the repository or err