1 // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved.
2 // Use of this source code is governed by a MIT license found in the LICENSE file.
12 func pkgPath(dir string) (string, error) {
13 pkg, err := build.Default.ImportDir(dir, build.AllowBinary)
17 return pkg.ImportPath, nil