mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
19 lines
441 B
Go
19 lines
441 B
Go
package parser
|
|
|
|
import (
|
|
//"golang.org/x/tools/go/packages"
|
|
//"github.com/revel/cmd/utils"
|
|
)
|
|
//import "golang.org/x/tools/go/packages"
|
|
//
|
|
//func GetPackage(appPath, importPath string) {
|
|
// config := &packages.Config{
|
|
// Mode: packages.NeedName | packages.NeedFiles,
|
|
// Dir:appPath,
|
|
// }
|
|
//
|
|
// pkgs, err := packages.Load(config, []string{importPath})
|
|
// utils.Logger.Info("Loaded packegs ", "len results", len(pkgs), "error",err)
|
|
//
|
|
//}
|