Skip to content

Commit 54b0c32

Browse files
author
Josh Newman
committed
chore: add docs
1 parent cf3273d commit 54b0c32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/generator/tag_group.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88

99
type XTagGroups []*XTagGroup
1010

11+
// find returns a found tag group by name or nil.
1112
func (g *XTagGroups) find(name string) *XTagGroup {
1213
for _, group := range *g {
1314
if group.Name == name {
@@ -24,6 +25,7 @@ type XTagGroup struct {
2425
Tags []string `json:"tags" yaml:"tags"`
2526
}
2627

28+
// tagExists returns whether a tag exists on a group or not.
2729
func (g *XTagGroup) tagExists(name string) bool {
2830
for _, tag := range g.Tags {
2931
if tag == name {

0 commit comments

Comments
 (0)