Hash calculates some predefined unique ID of Dependency
()
| 190 | |
| 191 | // Hash calculates some predefined unique ID of Dependency |
| 192 | func (d *Dependency) Hash() string { |
| 193 | return fmt.Sprintf("%s:%s:%d:%s", d.Architecture, d.Pkg, d.Relation, d.Version) |
| 194 | } |
| 195 | |
| 196 | // String produces human-readable representation |
| 197 | func (d *Dependency) String() string { |
no outgoing calls