Skip to content
This repository has been archived by the owner on May 21, 2023. It is now read-only.

Sort capabilities list #7

Merged
merged 1 commit into from
Jan 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,6 @@ func sortedKeys(m map[string]*Node) (keys []string) {
}

func goCapLine(name string, capabilities []string) string {
sort.Strings(capabilities)
return fmt.Sprintf("%s (%s)\n", name, strings.Join(capabilities, ", "))
}