blob: ed52a9374a652b8b5d88d07ea70fa842f0c64c46 [file] [log] [blame]
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package govulncheck has experimental govulncheck API.
package govulncheck
import (
"context"
"golang.org/x/vuln/internal/govulncheck"
)
// Config is the configuration for Main.
type Config = govulncheck.Config
// Main is the main function for the govulncheck command line tool.
func Main(cfg Config) error {
ctx := context.Background()
_, err := govulncheck.Run(ctx, cfg)
return err
}