Skip to content

Commit

Permalink
package is a reserved word
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Jun 4, 2024
1 parent ef07879 commit 64068d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/resourcedocsgen/cmd/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"io"
"net/http"
"slices"
"strings"
"time"

Expand Down Expand Up @@ -369,8 +370,8 @@ func isComponent(keywords []string) bool {
return getTagFromKeywords(keywords, "kind/component") != nil
}

func isFeaturedPackage(package string) bool {
return slices.Contains(featuredPackages, package)
func isFeaturedPackage(pkgName string) bool {
return slices.Contains(featuredPackages, pkgName)
}

func isNative(keywords []string) bool {
Expand Down

0 comments on commit 64068d9

Please sign in to comment.