MCPcopy Create free account
hub / github.com/wailsapp/wails / IsValidTag

Function IsValidTag

v2/internal/github/github.go:132–147  ·  view source on GitHub ↗

IsValidTag returns true if the given string is a valid tag

(tagVersion string)

Source from the content-addressed store, hash-verified

130
131// IsValidTag returns true if the given string is a valid tag
132func IsValidTag(tagVersion string) (bool, error) {
133 if tagVersion[0] == 'v' {
134 tagVersion = tagVersion[1:]
135 }
136 tags, err := GetVersionTags()
137 if err != nil {
138 return false, err
139 }
140
141 for _, tag := range tags {
142 if tag.String() == tagVersion {
143 return true, nil
144 }
145 }
146 return false, nil
147}

Callers

nothing calls this directly

Calls 2

GetVersionTagsFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…