Class GoModJsonParser

java.lang.Object
org.owasp.dependencycheck.data.golang.GoModJsonParser

@ThreadSafe public final class GoModJsonParser extends Object
Parses json output from `go list -json -m all`.
Author:
Matthijs van den Bos
  • Method Details

    • process

      public static List<GoModDependency> process(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`