Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegexNameable ¶
type RegexNameable struct {
// contains filtered or unexported fields
}
func NewRegexNameable ¶
func NewRegexNameable(pattern string) *RegexNameable
func (*RegexNameable) FirstGroupOrDefault ¶
func (rn *RegexNameable) FirstGroupOrDefault(s string, defaultValue string) string
func (RegexNameable) Matches ¶
func (rn RegexNameable) Matches(s string) bool
func (*RegexNameable) Regex ¶
func (rn *RegexNameable) Regex() *regexp.Regexp
func (*RegexNameable) String ¶
func (rn *RegexNameable) String() string
type SimpleNameable ¶
type SimpleNameable struct {
// contains filtered or unexported fields
}
func NewSimpleNameable ¶
func NewSimpleNameable(name string) *SimpleNameable
func (*SimpleNameable) Matches ¶
func (sn *SimpleNameable) Matches(s string) bool
func (*SimpleNameable) Name ¶
func (sn *SimpleNameable) Name() string
func (*SimpleNameable) String ¶
func (sn *SimpleNameable) String() string
Click to show internal directories.
Click to hide internal directories.