Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
Fix generated Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioCarrion committed Feb 7, 2020
1 parent ec60fe7 commit b910387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ versions <full path to go.mod> <full path to go.mod>
Using

```
version ~/Repositories/versions/go.mod ~/Repositories/nit/go.mod
versions ~/Repositories/versions/go.mod ~/Repositories/nit/go.mod
```

The following output will be generated:
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func parse(files []string) ([]*modfile.File, error) {
func printMarkdown(table Table) {
line0 := "|"
line1 := "|---"
line2 := "| Go version |"
line2 := "| Go version "

for i, name := range table.Modules {
line0 = fmt.Sprintf("%s | %s ", line0, name)
Expand Down Expand Up @@ -188,7 +188,7 @@ func printMarkdown(table Table) {
prefix = pkg
}

line = fmt.Sprintf("| %s | %s |", prefix, line)
line = fmt.Sprintf("| %s | %s", prefix, line)

fmt.Println(line)
}
Expand Down

0 comments on commit b910387

Please sign in to comment.