Documentation ¶
Index ¶
- type Branch
- type Name
- func (n Name) FormatStringWithRegexAndDelimiter(str string) string
- func (n Name) Join() string
- func (n *Name) SetPrefixWithTemplate(prefixTemplatePattern string, templateValues map[string]string) error
- func (n *Name) SetSuffixWithTemplate(suffixTemplatePattern string, templateValues map[string]string) error
- func (n *Name) SetTitleWithTemplate(titleTemplatePattern string, templateValues map[string]string) error
- func (n Name) ValidCharsRegex() *regexp.Regexp
- type Obj
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Name ¶
Name struct is for branch names
func (Name) FormatStringWithRegexAndDelimiter ¶
FormatStringWithRegexAndDelimiter formates a String using a regex with valid chars for branch names
func (Name) Join ¶
Join joins n.Prefix, n.Title and n.Suffix together usign the given delimiter. Empty strings are ignored.
func (*Name) SetPrefixWithTemplate ¶
func (n *Name) SetPrefixWithTemplate(prefixTemplatePattern string, templateValues map[string]string) error
SetPrefixWithTemplate sets the Prefix attribute with a Go template pattern string
func (*Name) SetSuffixWithTemplate ¶
func (n *Name) SetSuffixWithTemplate(suffixTemplatePattern string, templateValues map[string]string) error
SetSuffixWithTemplate sets the Suffix attribute with a Go template pattern string
func (*Name) SetTitleWithTemplate ¶
func (n *Name) SetTitleWithTemplate(titleTemplatePattern string, templateValues map[string]string) error
SetTitleWithTemplate sets the Title attribute with a Go template pattern string
func (Name) ValidCharsRegex ¶
ValidCharsRegex gives the regex which chars are allowed for branch names
Click to show internal directories.
Click to hide internal directories.