|
|
|
@ -55,7 +55,7 @@ func (s *Storage) Short(URL string, value *string) error {
|
|
|
|
|
|
|
|
|
|
// Test if the URL alraedy exist and return the key
|
|
|
|
|
if val, ok := s.Url[hash]; ok {
|
|
|
|
|
value = &val
|
|
|
|
|
*value = val
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
// Iterate to the length of hash to get the shortest output
|
|
|
|
|