Skip to content

Commit

Permalink
topics instead of stdlib packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jreisinger committed Oct 24, 2024
1 parent 61c7923 commit a2b2647
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions katas.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Kata struct {
HtmlUrl string `json:"html_url"`
CloneUrl string `json:"clone_url"`
Stars int `json:"stargazers_count"`
Topics []string `json:"topics"` // standard library packages
Topics []string `json:"topics"`
Description string `json:"description"`
goLines int
done []time.Time
Expand Down Expand Up @@ -192,8 +192,8 @@ func printKatas(katas Katas, wide *bool) {
tw := new(tabwriter.Writer).Init(os.Stdout, 0, 8, 2, ' ', 0)
if *wide {
const format = "%v\t%v\t%v\t%v\t%v\t%v\t%v\n"
fmt.Fprintf(tw, format, "Name", "Description", "Lines", "Done", "Last done", "Standard library packages", "URL")
fmt.Fprintf(tw, format, "----", "-----------", "-----", "----", "---------", "-------------------------", "---")
fmt.Fprintf(tw, format, "Name", "Description", "Lines", "Done", "Last done", "Topics", "URL")
fmt.Fprintf(tw, format, "----", "-----------", "-----", "----", "---------", "------", "---")
for _, k := range katas {
fmt.Fprintf(tw, format,
k.Name,
Expand Down

0 comments on commit a2b2647

Please sign in to comment.