coreonce

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyOnce

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

func NewAnyOnce

func NewAnyOnce(initializerFunc func() interface{}) AnyOnce

func NewAnyOncePtr

func NewAnyOncePtr(initializerFunc func() interface{}) *AnyOnce

func (*AnyOnce) IsNull

func (receiver *AnyOnce) IsNull() bool

func (*AnyOnce) IsStringEmpty

func (receiver *AnyOnce) IsStringEmpty() bool

func (*AnyOnce) IsStringEmptyOrWhitespace

func (receiver *AnyOnce) IsStringEmptyOrWhitespace() bool

func (*AnyOnce) String

func (receiver *AnyOnce) String() string

func (*AnyOnce) Value

func (receiver *AnyOnce) Value() interface{}

type BoolOnce

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

func NewBoolOnce

func NewBoolOnce(initializerFunc func() bool) BoolOnce

func NewBoolOncePtr

func NewBoolOncePtr(initializerFunc func() bool) *BoolOnce

func (*BoolOnce) MarshalJSON

func (receiver *BoolOnce) MarshalJSON() ([]byte, error)

func (*BoolOnce) String

func (receiver *BoolOnce) String() string

func (*BoolOnce) UnmarshalJSON

func (receiver *BoolOnce) UnmarshalJSON(data []byte) error

func (*BoolOnce) Value

func (receiver *BoolOnce) Value() bool

type ByteOnce

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

func NewByteOnce

func NewByteOnce(initializerFunc func() byte) ByteOnce

func NewByteOncePtr

func NewByteOncePtr(initializerFunc func() byte) *ByteOnce

func (*ByteOnce) Int

func (receiver *ByteOnce) Int() int

func (*ByteOnce) IsByteCompareResult

func (receiver *ByteOnce) IsByteCompareResult(
	valueCompare byte,
	compare corecomparator.Compare,
) bool

func (*ByteOnce) IsEmpty

func (receiver *ByteOnce) IsEmpty() bool

IsEmpty returns true if zero

func (*ByteOnce) IsNegative

func (receiver *ByteOnce) IsNegative() bool

func (*ByteOnce) IsPositive

func (receiver *ByteOnce) IsPositive() bool

func (*ByteOnce) IsZero

func (receiver *ByteOnce) IsZero() bool

func (*ByteOnce) MarshalJSON

func (receiver *ByteOnce) MarshalJSON() ([]byte, error)

func (*ByteOnce) String

func (receiver *ByteOnce) String() string

func (*ByteOnce) UnmarshalJSON

func (receiver *ByteOnce) UnmarshalJSON(data []byte) error

func (*ByteOnce) Value

func (receiver *ByteOnce) Value() byte

type ErrorOnce

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

func NewErrorOnce

func NewErrorOnce(initializerFunc func() error) ErrorOnce

func NewErrorOncePtr

func NewErrorOncePtr(initializerFunc func() error) *ErrorOnce

func (*ErrorOnce) ConcatNew

func (receiver *ErrorOnce) ConcatNew(messages ...string) error

func (*ErrorOnce) ConcatNewString

func (receiver *ErrorOnce) ConcatNewString(messages ...string) string

func (*ErrorOnce) HandleError

func (receiver *ErrorOnce) HandleError()

HandleError with panic if error exist or else skip

Skip if no error type (NoError).

func (*ErrorOnce) HandleErrorWith

func (receiver *ErrorOnce) HandleErrorWith(messages ...string)

HandleErrorWith by concatenating message and then panic if error exist or else skip

Skip if no error type (NoError).

func (*ErrorOnce) HasError

func (receiver *ErrorOnce) HasError() bool

func (*ErrorOnce) IsMessageEqual

func (receiver *ErrorOnce) IsMessageEqual(msg string) bool

func (*ErrorOnce) IsNull

func (receiver *ErrorOnce) IsNull() bool

func (*ErrorOnce) IsNullOrEmpty

func (receiver *ErrorOnce) IsNullOrEmpty() bool

func (*ErrorOnce) MarshalJSON

func (receiver *ErrorOnce) MarshalJSON() ([]byte, error)

func (*ErrorOnce) Message

func (receiver *ErrorOnce) Message() string

func (*ErrorOnce) String

func (receiver *ErrorOnce) String() string

func (*ErrorOnce) UnmarshalJSON

func (receiver *ErrorOnce) UnmarshalJSON(data []byte) error

func (*ErrorOnce) Value

func (receiver *ErrorOnce) Value() error

type IntegerOnce

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

func NewIntegerOnce

func NewIntegerOnce(initializerFunc func() int) IntegerOnce

func NewIntegerOncePtr

func NewIntegerOncePtr(initializerFunc func() int) *IntegerOnce

func (*IntegerOnce) IsEmpty

func (receiver *IntegerOnce) IsEmpty() bool

IsEmpty returns true if zero

func (*IntegerOnce) IsIntCompareResult

func (receiver *IntegerOnce) IsIntCompareResult(valueCompare int, compare corecomparator.Compare) bool

func (*IntegerOnce) IsNegative

func (receiver *IntegerOnce) IsNegative() bool

func (*IntegerOnce) IsPositive

func (receiver *IntegerOnce) IsPositive() bool

func (*IntegerOnce) IsZero

func (receiver *IntegerOnce) IsZero() bool

func (*IntegerOnce) MarshalJSON

func (receiver *IntegerOnce) MarshalJSON() ([]byte, error)

func (*IntegerOnce) String

func (receiver *IntegerOnce) String() string

func (*IntegerOnce) UnmarshalJSON

func (receiver *IntegerOnce) UnmarshalJSON(data []byte) error

func (*IntegerOnce) Value

func (receiver *IntegerOnce) Value() int

type StringOnce

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

func NewStringOnce

func NewStringOnce(initializerFunc func() string) StringOnce

func NewStringOncePtr

func NewStringOncePtr(initializerFunc func() string) *StringOnce

func (*StringOnce) Bytes

func (it *StringOnce) Bytes() []byte

func (*StringOnce) Error

func (it *StringOnce) Error() error

func (*StringOnce) IsContains

func (it *StringOnce) IsContains(equalString string) bool

func (*StringOnce) IsEmpty

func (it *StringOnce) IsEmpty() bool

func (*StringOnce) IsEmptyOrWhitespace

func (it *StringOnce) IsEmptyOrWhitespace() bool

func (*StringOnce) IsEqual

func (it *StringOnce) IsEqual(equalString string) bool

func (*StringOnce) MarshalJSON

func (it *StringOnce) MarshalJSON() ([]byte, error)

func (*StringOnce) String

func (it *StringOnce) String() string

func (*StringOnce) UnmarshalJSON

func (it *StringOnce) UnmarshalJSON(data []byte) error

func (*StringOnce) Value

func (it *StringOnce) Value() string

func (*StringOnce) ValuePtr

func (it *StringOnce) ValuePtr() *string

type StringsOnce

type StringsOnce struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewStringsOnce

func NewStringsOnce(initializerFunc func() *[]string) StringsOnce

func NewStringsOncePtr

func NewStringsOncePtr(initializerFunc func() *[]string) *StringsOnce

func (*StringsOnce) Csv

func (it *StringsOnce) Csv() string

func (*StringsOnce) CsvLines

func (it *StringsOnce) CsvLines() *[]string

func (*StringsOnce) CsvOptions

func (it *StringsOnce) CsvOptions(isSkipQuoteOnlyOnExistence bool) string

func (*StringsOnce) Has

func (it *StringsOnce) Has(search string) bool

func (*StringsOnce) HasAll

func (it *StringsOnce) HasAll(searchTerms ...string) bool

func (*StringsOnce) HasAnyItem

func (it *StringsOnce) HasAnyItem() bool

func (*StringsOnce) IsContains

func (it *StringsOnce) IsContains(search string) bool

func (*StringsOnce) IsEmpty

func (it *StringsOnce) IsEmpty() bool

IsEmpty returns true if zero

func (*StringsOnce) JsonStringMust added in v0.8.3

func (it *StringsOnce) JsonStringMust() string

func (*StringsOnce) Length

func (it *StringsOnce) Length() int

func (*StringsOnce) MarshalJSON

func (it *StringsOnce) MarshalJSON() ([]byte, error)

func (*StringsOnce) String

func (it *StringsOnce) String() string

func (*StringsOnce) Strings

func (it *StringsOnce) Strings() *[]string

func (*StringsOnce) UniqueMap

func (it *StringsOnce) UniqueMap() *map[string]bool

func (*StringsOnce) UniqueMapLock

func (it *StringsOnce) UniqueMapLock() *map[string]bool

func (*StringsOnce) UnmarshalJSON

func (it *StringsOnce) UnmarshalJSON(data []byte) error

func (*StringsOnce) Value

func (it *StringsOnce) Value() *[]string

func (*StringsOnce) Values

func (it *StringsOnce) Values() *[]string

Jump to

Keyboard shortcuts

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