Correct imports and variable naming.

This commit is contained in:
Benjamin Pflanz 2016-05-03 18:50:41 -04:00
parent 7fbe89f60d
commit b89a8c9df8
2 changed files with 6 additions and 6 deletions

View File

@ -75,7 +75,7 @@ import (
"path/filepath"
"strings"
"github.com/adfin/jsonenums/parser"
"github.com/campoy/jsonenums/parser"
)
var (
@ -92,16 +92,16 @@ func main() {
types := strings.Split(*typeNames, ",")
// Only one directory at a time can be processed, and the default is ".".
in_dir := "."
inDir := "."
if args := flag.Args(); len(args) == 1 {
in_dir = args[0]
inDir = args[0]
} else if len(args) > 1 {
log.Fatalf("only one directory at a time")
}
dir, err := filepath.Abs(in_dir)
dir, err := filepath.Abs(inDir)
if err != nil {
log.Fatalf("Unable to determine absolute filepath for requested path %s: %v",
in_dir, err)
inDir, err)
}
pkg, err := parser.ParsePackage(dir)

View File

@ -21,7 +21,7 @@ import (
"go/format"
"github.com/adfin/jsonenums/parser"
"github.com/campoy/jsonenums/parser"
)
func init() {