Skip to content
Snippets Groups Projects
Commit a3b077f8 authored by Jamie Tanna's avatar Jamie Tanna
Browse files

Add helper method to format a dependency

parent 9ea7e980
No related branches found
No related tags found
Loading
package domain
import (
"fmt"
)
type Dependency struct {
Organisation string
Repo string
......@@ -11,3 +15,7 @@ type Dependency struct {
PackageManager string
PackageFilePath string
}
func (d Dependency) DependencyDetails() string {
return fmt.Sprintf("(%s@%s)", d.PackageName, d.Version)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment