strings

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fluent

Types

type Additional

type Additional struct {
	*Comparable
}

func (*Additional) And

func (s *Additional) And() IComparable

type Comparable

type Comparable struct {
	*Testable
}

func (*Comparable) Be

func (*Comparable) BeEmpty

func (s *Comparable) BeEmpty()

func (*Comparable) BeOneOf

func (s *Comparable) BeOneOf(values []string) fluent.IAdditional[string, IComparable]

func (*Comparable) BeWhiteSpace

func (s *Comparable) BeWhiteSpace()

func (*Comparable) EndWith

func (s *Comparable) EndWith(suffix string) fluent.IAdditional[string, IComparable]

func (*Comparable) HaveFnv32aSumOf

func (s *Comparable) HaveFnv32aSumOf(sumValue uint32) fluent.IAdditional[string, IComparable]

func (*Comparable) HaveFnv64aSumOf

func (s *Comparable) HaveFnv64aSumOf(sumValue uint64) fluent.IAdditional[string, IComparable]

func (*Comparable) HaveLengthOf

func (s *Comparable) HaveLengthOf(length int) fluent.IAdditional[string, IComparable]

func (*Comparable) Match

func (s *Comparable) Match(pattern string) fluent.IAdditional[string, IComparable]

func (*Comparable) NotBe

func (*Comparable) NotBeEmpty

func (s *Comparable) NotBeEmpty() fluent.IAdditional[string, IComparable]

func (*Comparable) NotBeOneOf

func (s *Comparable) NotBeOneOf(values []string) fluent.IAdditional[string, IComparable]

func (*Comparable) NotEndWith

func (s *Comparable) NotEndWith(suffix string) fluent.IAdditional[string, IComparable]

func (*Comparable) NotMatch

func (s *Comparable) NotMatch(pattern string) fluent.IAdditional[string, IComparable]

func (*Comparable) NotStartWith

func (s *Comparable) NotStartWith(prefix string) fluent.IAdditional[string, IComparable]

func (*Comparable) StartWith

func (s *Comparable) StartWith(prefix string) fluent.IAdditional[string, IComparable]

type FluentT

type FluentT struct {
	// contains filtered or unexported fields
}

func (*FluentT) It

func (s *FluentT) It(subject string) fluent.ISubject[string, IComparable]

type IComparable

type IComparable interface {
	fluent.IComparable[string]
	Be(value string) fluent.IAdditional[string, IComparable]
	BeEmpty()
	BeOneOf(values []string) fluent.IAdditional[string, IComparable]
	NotBe(value string) fluent.IAdditional[string, IComparable]
	NotBeEmpty() fluent.IAdditional[string, IComparable]
	NotBeOneOf(values []string) fluent.IAdditional[string, IComparable]
	Match(pattern string) fluent.IAdditional[string, IComparable]
	NotMatch(pattern string) fluent.IAdditional[string, IComparable]
	StartWith(prefix string) fluent.IAdditional[string, IComparable]
	NotStartWith(prefix string) fluent.IAdditional[string, IComparable]
	EndWith(suffix string) fluent.IAdditional[string, IComparable]
	NotEndWith(suffix string) fluent.IAdditional[string, IComparable]
	HaveLengthOf(length int) fluent.IAdditional[string, IComparable]
	HaveFnv32aSumOf(sumValue uint32) fluent.IAdditional[string, IComparable]
	HaveFnv64aSumOf(sumValue uint64) fluent.IAdditional[string, IComparable]
}

type String

type String interface {
	~string
}

type Subject

type Subject struct {
	*Testable
}

func (*Subject) Should

func (s *Subject) Should() IComparable

type Testable

type Testable struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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