nameable

package
v0.77.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: AGPL-3.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	MapKey() 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) MapKey added in v0.42.8

func (rn *RegexNameable) MapKey() 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) MapKey added in v0.42.8

func (sn *SimpleNameable) MapKey() string

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