nameable

package
v0.37.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nameable

type Nameable interface {
	Matches(s string) bool
	String() string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL