Set caches a URL and its shortcode
(url, code string)
| 31 | |
| 32 | // Set caches a URL and its shortcode |
| 33 | func (c *urlCache) Set(url, code string) { |
| 34 | c.mutex.Lock() |
| 35 | defer c.mutex.Unlock() |
| 36 | c.cache[url] = code |
| 37 | } |
| 38 | |
| 39 | func toBase62(num uint64) string { |
| 40 | if num == 0 { |
no outgoing calls
no test coverage detected