Files
revel-cmd/parser/utils.go
2020-04-26 22:28:46 -07:00

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)
//
//}