We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf3273d commit 54b0c32Copy full SHA for 54b0c32
internal/generator/tag_group.go
@@ -8,6 +8,7 @@ import (
8
9
type XTagGroups []*XTagGroup
10
11
+// find returns a found tag group by name or nil.
12
func (g *XTagGroups) find(name string) *XTagGroup {
13
for _, group := range *g {
14
if group.Name == name {
@@ -24,6 +25,7 @@ type XTagGroup struct {
24
25
Tags []string `json:"tags" yaml:"tags"`
26
}
27
28
+// tagExists returns whether a tag exists on a group or not.
29
func (g *XTagGroup) tagExists(name string) bool {
30
for _, tag := range g.Tags {
31
if tag == name {
0 commit comments