Initial commit to go mod

This commit is contained in:
notzippy@gmail.com
2020-03-10 09:33:41 -07:00
committed by notzippy@gmail.com
parent d2014633af
commit acb8fb631b
15 changed files with 525 additions and 214 deletions

18
parser/utils.go Normal file
View File

@@ -0,0 +1,18 @@
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)
//
//}