Class GoModJsonParser
- java.lang.Object
-
- org.owasp.dependencycheck.data.golang.GoModJsonParser
-
@ThreadSafe public final class GoModJsonParser extends java.lang.Object
Parses json output from `go list -json -m all`.- Author:
- Matthijs van den Bos
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<GoModDependency>
process(java.io.InputStream inputStream)
Process the input stream to create the list of dependencies.
-
-
-
Method Detail
-
process
public static java.util.List<GoModDependency> process(java.io.InputStream inputStream) throws AnalysisException
Process the input stream to create the list of dependencies.- Parameters:
inputStream
- the InputStream to parse- Returns:
- the list of dependencies
- Throws:
AnalysisException
- thrown when there is an error parsing the results of `go mod`
-
-