some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / go / packages / example_test.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/go/packages/example_test.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/go/packages/example_test.go
deleted file mode 100644 (file)
index 94cf8eb..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-package packages_test
-
-import (
-       "flag"
-       "fmt"
-       "os"
-
-       "golang.org/x/tools/go/packages"
-)
-
-// Example demonstrates how to load the packages specified on the
-// command line from source syntax.
-func Example() {
-       flag.Parse()
-
-       // Many tools pass their command-line arguments (after any flags)
-       // uninterpreted to packages.Load so that it can interpret them
-       // according to the conventions of the underlying build system.
-       cfg := &packages.Config{Mode: packages.NeedFiles | packages.NeedSyntax}
-       pkgs, err := packages.Load(cfg, flag.Args()...)
-       if err != nil {
-               fmt.Fprintf(os.Stderr, "load: %v\n", err)
-               os.Exit(1)
-       }
-       if packages.PrintErrors(pkgs) > 0 {
-               os.Exit(1)
-       }
-
-       // Print the names of the source files
-       // for each package listed on the command line.
-       for _, pkg := range pkgs {
-               fmt.Println(pkg.ID, pkg.GoFiles)
-       }
-}