@NotThreadSafe public class GoModJsonParser extends Object
| Constructor and Description |
|---|
GoModJsonParser(InputStream inputStream)
Creates a ComposerLockParser from a JsonReader and an InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
List<GoModDependency> |
getDependencies()
Gets the list of dependencies.
|
void |
process()
Process the input stream to create the list of dependencies.
|
public GoModJsonParser(InputStream inputStream)
inputStream - the InputStream to parsepublic void process()
throws AnalysisException
AnalysisException - thrown when there is an error parsing the
results of `go mod`public List<GoModDependency> getDependencies()
Copyright © 2012–2020 OWASP. All rights reserved.