typ

package
v0.0.0-...-35dab5e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Generated code; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var BuildInfo = buildInfo{
	ShortCommitHash: "f4ed047",
	LongCommitHash:  "f4ed047b84b22d0139e35ef8303abd5bb304d201",
	BuildDateTime:   "2022-08-17T21:34:29+02:00",
}

Functions

This section is empty.

Types

type String

type String string

func (String) Append

func (s String) Append(str string) String

func (String) Contains

func (s String) Contains(that string) bool

func (String) Count

func (s String) Count() int

func (String) HasPrefix

func (s String) HasPrefix(prefix string) bool

func (String) HasSuffix

func (s String) HasSuffix(suffix string) bool

func (String) IsEmpty

func (s String) IsEmpty() bool

func (String) IsNotEmpty

func (s String) IsNotEmpty() bool

func (String) Map

func (s String) Map(f func(string) string) String

func (String) NotContains

func (s String) NotContains(that string) bool

func (String) QueryEscape

func (s String) QueryEscape() String

func (String) QueryUnEscape

func (s String) QueryUnEscape() (String, error)

func (String) ReplaceAll

func (s String) ReplaceAll(oldString, newString string) String

ReplaceAll returns a copy of the string s with all non-overlapping instances of old replaced by new.

func (String) Split

func (s String) Split(sep string) StringList

func (String) Str

func (s String) Str() string

func (String) Title

func (s String) Title() String

func (String) ToBytes

func (s String) ToBytes() []byte

func (String) ToLower

func (s String) ToLower() String

func (String) ToString

func (s String) ToString() string

func (String) ToTitle

func (s String) ToTitle() String

func (String) ToUpper

func (s String) ToUpper() String

func (String) TrimLeft

func (s String) TrimLeft(cutset string) String

TrimLeft returns a slice of the string s with all leading Unicode code points contained in cutset removed.

func (String) TrimPrefix

func (s String) TrimPrefix(prefix string) String

TrimPrefix returns s without the provided leading prefix string. If s doesn't start with prefix, s is returned unchanged.

func (String) TrimSpace

func (s String) TrimSpace() String

func (String) TrimSuffix

func (s String) TrimSuffix(suffix string) String

TrimSuffix returns s without the provided trailing suffix string. If s doesn't end with suffix, s is returned unchanged.

type StringList

type StringList []string

func EmptyStringList

func EmptyStringList() StringList

func (StringList) Append

func (rcv StringList) Append(x string) StringList

append an element to the end of the list

func (StringList) AppendAll

func (rcv StringList) AppendAll(xs ...string) StringList

append elements to the end of the list

func (StringList) AppendSlice

func (rcv StringList) AppendSlice(xs []string) StringList

append a slice to the end of the list

func (StringList) Apply

func (rcv StringList) Apply(x int) string

returns the element at the index

func (StringList) ApplyOrElse

func (rcv StringList) ApplyOrElse(x int, fn func() string) string

func (StringList) Concat

func (rcv StringList) Concat(xs ...string) StringList

alias for AppendAll

func (StringList) ConcatSlice

func (rcv StringList) ConcatSlice(xs []string) StringList

alias for AppendSlice

func (StringList) Contains

func (rcv StringList) Contains(a string) bool

func (StringList) ContainsNot

func (rcv StringList) ContainsNot(a string) bool

func (StringList) Count

func (rcv StringList) Count() int

func (StringList) Distinct

func (rcv StringList) Distinct() StringList

func (StringList) DropWhile

func (rcv StringList) DropWhile(fn func(string) bool) StringList

alias for FilterNot

func (StringList) Fill

func (rcv StringList) Fill(num int, a string) StringList

create a new list prefilled

func (StringList) Filter

func (rcv StringList) Filter(fn func(string) bool) StringList

Selects all elements of this list which satisfy a predicate.

func (StringList) FilterNot

func (rcv StringList) FilterNot(fn func(string) bool) StringList

Selects all elements of this list which do not satisfy a predicate.

func (StringList) FlatMapToStringList

func (rcv StringList) FlatMapToStringList(fn func(string) StringList) StringList

func (StringList) FoldLeft

func (rcv StringList) FoldLeft(zero string, fn func(acc string, x string) string) string

func (StringList) FoldRight

func (rcv StringList) FoldRight(zero string, fn func(acc string, x string) string) string

func (StringList) ForEach

func (rcv StringList) ForEach(fn func(string))

func (StringList) ForEachWithIndex

func (rcv StringList) ForEachWithIndex(fn func(int, string))

func (StringList) ForEachWithLastFlag

func (rcv StringList) ForEachWithLastFlag(fn func(bool, string))

func (StringList) Head

func (rcv StringList) Head() string

panics when the list is empty

func (StringList) HeadOption

func (rcv StringList) HeadOption() StringOption

func (StringList) Init

func (rcv StringList) Init() StringList

returns the initial part of the collection, without the last element

func (StringList) Intersect

func (rcv StringList) Intersect(xs StringList) StringList

return the intersection of the list and another list

func (StringList) Intersperse

func (rcv StringList) Intersperse(a string) StringList

func (StringList) IsDefinedAt

func (rcv StringList) IsDefinedAt(x int) bool

tests whether this sequence contains the given index

func (StringList) IsEmpty

func (rcv StringList) IsEmpty() bool

func (StringList) IsNotEmpty

func (rcv StringList) IsNotEmpty() bool

func (StringList) Last

func (rcv StringList) Last() string

func (StringList) MapToStringList

func (rcv StringList) MapToStringList(fn func(string) string) StringList

func (StringList) MkString

func (rcv StringList) MkString() string

func (StringList) Partition

func (rcv StringList) Partition(fn func(string) bool) (StringList, StringList)

func (StringList) RangeOf

func (rcv StringList) RangeOf(from int, to int, fn func(int) string) StringList

func (StringList) Reverse

func (rcv StringList) Reverse() StringList

func (StringList) Slice

func (rcv StringList) Slice(from int, to int) StringList

func (StringList) Tablulate

func (rcv StringList) Tablulate(num int, fn func(int) string) StringList

func (StringList) Tail

func (rcv StringList) Tail() StringList

The rest of the collection without its first element.

func (StringList) TakeWhile

func (rcv StringList) TakeWhile(fn func(string) bool) StringList

alias for Filter

func (StringList) ToSlice

func (rcv StringList) ToSlice() []string

returns a slice of string

type StringNone

type StringNone struct {
}

func (StringNone) Contains

func (rcv StringNone) Contains(a string) bool

func (StringNone) ContainsNot

func (rcv StringNone) ContainsNot(a string) bool

func (StringNone) Count

func (rcv StringNone) Count() int

func (StringNone) FlatMapToString

func (rcv StringNone) FlatMapToString(fn func(string) StringOption) StringOption

func (StringNone) ForEach

func (rcv StringNone) ForEach(fn func(string))

func (StringNone) Get

func (rcv StringNone) Get() string

panics when called

func (StringNone) GetOrElse

func (rcv StringNone) GetOrElse(fn func() string) string

func (StringNone) IsDefined

func (rcv StringNone) IsDefined() bool

func (StringNone) IsEmpty

func (rcv StringNone) IsEmpty() bool

func (StringNone) IsNotEmpty

func (rcv StringNone) IsNotEmpty() bool

func (StringNone) MapToString

func (rcv StringNone) MapToString(fn func(string) string) StringOption

type StringOption

type StringOption interface {
	Get() string
	GetOrElse(fn func() string) string
	ForEach(fn func(string))
	IsEmpty() bool
	IsNotEmpty() bool
	IsDefined() bool
	Count() int
	Contains(a string) bool
	ContainsNot(a string) bool
	MapToString(fn func(string) string) StringOption
	FlatMapToString(fn func(string) StringOption) StringOption
}

func OptionOfString

func OptionOfString(a *string) StringOption

type StringSome

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

func (StringSome) Contains

func (rcv StringSome) Contains(a string) bool

func (StringSome) ContainsNot

func (rcv StringSome) ContainsNot(a string) bool

func (StringSome) Count

func (rcv StringSome) Count() int

func (StringSome) FlatMapToString

func (rcv StringSome) FlatMapToString(fn func(string) StringOption) StringOption

func (StringSome) ForEach

func (rcv StringSome) ForEach(fn func(string))

func (StringSome) Get

func (rcv StringSome) Get() string

some

func (StringSome) GetOrElse

func (rcv StringSome) GetOrElse(fn func() string) string

func (StringSome) IsDefined

func (rcv StringSome) IsDefined() bool

alias

func (StringSome) IsEmpty

func (rcv StringSome) IsEmpty() bool

func (StringSome) IsNotEmpty

func (rcv StringSome) IsNotEmpty() bool

func (StringSome) MapToString

func (rcv StringSome) MapToString(fn func(string) string) StringOption

Jump to

Keyboard shortcuts

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