Parser describes an interface for parsing information from a URL.
| 9 | |
| 10 | // Parser describes an interface for parsing information from a URL. |
| 11 | type Parser interface { |
| 12 | // ParseDigest parses the digest from the given URL. |
| 13 | // If none found, implementations should return an error. |
| 14 | ParseDigest(url string) (digest.Digest, error) |
| 15 | } |
| 16 | |
| 17 | type parser struct{} |
| 18 |
no outgoing calls
no test coverage detected