From 33337093150c0f1ba92a37da654463243b6101a4 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Thu, 18 Nov 2021 13:07:35 -0500 Subject: [PATCH] add doc comments Signed-off-by: Alex Goodman --- syft/source/location.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syft/source/location.go b/syft/source/location.go index ea6d4c3f33e..ccc0aa00226 100644 --- a/syft/source/location.go +++ b/syft/source/location.go @@ -29,6 +29,7 @@ func NewLocation(realPath string) Location { } } +// NewVirtualLocation creates a new location for a path accessed by a virtual path (a path with a symlink or hardlink somewhere in the path) func NewVirtualLocation(realPath, virtualPath string) Location { return Location{ Coordinates: Coordinates{ @@ -38,6 +39,7 @@ func NewVirtualLocation(realPath, virtualPath string) Location { } } +// NewLocationFromCoordinates creates a new location for the given Coordinates. func NewLocationFromCoordinates(coordinates Coordinates) Location { return Location{ Coordinates: coordinates,