Skip to content

Commit

Permalink
Minor cleanup/renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
upamanyus committed Mar 27, 2024
1 parent 07ddc77 commit 008eb1d
Show file tree
Hide file tree
Showing 7 changed files with 353 additions and 371 deletions.
2 changes: 1 addition & 1 deletion .github/mailbot.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"commitEmailFormat": "html",
"commitList": "[email protected],[email protected],[email protected],[email protected]"
"commitList": "[email protected],[email protected],[email protected],[email protected],[email protected]"
}

6 changes: 3 additions & 3 deletions cmd/goose/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/fatih/color"

"github.com/tchajed/goose"
"github.com/tchajed/goose/internal/coq"
"github.com/tchajed/goose/internal/glang"
)

// write data to file name, first checking if it already has those contents
Expand All @@ -29,7 +29,7 @@ func writeFileIfChanged(name string, data []byte, perm os.FileMode) error {
return os.WriteFile(name, data, perm)
}

func coqFileContents(f coq.File) []byte {
func coqFileContents(f glang.File) []byte {
var b bytes.Buffer
f.Write(&b)
return b.Bytes()
Expand All @@ -55,7 +55,7 @@ func translate(pkgPatterns []string, outRootDir string, modDir string,
}
}
outFile := path.Join(outRootDir,
coq.ImportToPath(f.PkgPath, f.GoPackage))
glang.ImportToPath(f.PkgPath, f.GoPackage))
outDir := path.Dir(outFile)
err = os.MkdirAll(outDir, 0777)
if err != nil {
Expand Down
Loading

0 comments on commit 008eb1d

Please sign in to comment.