Documentation
¶
Index ¶
- type AnyOnce
- type BoolOnce
- type ByteOnce
- func (it *ByteOnce) Int() int
- func (it *ByteOnce) IsEmpty() bool
- func (it *ByteOnce) IsNegative() bool
- func (it *ByteOnce) IsPositive() bool
- func (it *ByteOnce) IsZero() bool
- func (it *ByteOnce) MarshalJSON() ([]byte, error)
- func (it *ByteOnce) Serialize() ([]byte, error)
- func (it *ByteOnce) String() string
- func (it *ByteOnce) UnmarshalJSON(data []byte) error
- func (it *ByteOnce) Value() byte
- type BytesOnce
- type ErrorOnce
- func (it *ErrorOnce) ConcatNew(messages ...string) error
- func (it *ErrorOnce) ConcatNewString(messages ...string) string
- func (it *ErrorOnce) HandleError()
- func (it *ErrorOnce) HandleErrorWith(messages ...string)
- func (it *ErrorOnce) HasError() bool
- func (it *ErrorOnce) IsMessageEqual(msg string) bool
- func (it *ErrorOnce) IsNull() bool
- func (it *ErrorOnce) IsNullOrEmpty() bool
- func (it *ErrorOnce) MarshalJSON() ([]byte, error)
- func (it *ErrorOnce) Message() string
- func (it *ErrorOnce) Serialize() ([]byte, error)
- func (it *ErrorOnce) String() string
- func (it *ErrorOnce) UnmarshalJSON(data []byte) error
- func (it *ErrorOnce) Value() error
- type IntegerOnce
- func (it *IntegerOnce) IsEmpty() bool
- func (it *IntegerOnce) IsNegative() bool
- func (it *IntegerOnce) IsPositive() bool
- func (it *IntegerOnce) IsZero() bool
- func (it *IntegerOnce) MarshalJSON() ([]byte, error)
- func (it *IntegerOnce) Serialize() ([]byte, error)
- func (it *IntegerOnce) String() string
- func (it *IntegerOnce) UnmarshalJSON(data []byte) error
- func (it *IntegerOnce) Value() int
- type IntegersOnce
- func (it *IntegersOnce) Integers() []int
- func (it *IntegersOnce) IsEmpty() bool
- func (it *IntegersOnce) IsEqual(integerItems ...int) bool
- func (it *IntegersOnce) IsZero() bool
- func (it *IntegersOnce) List() []int
- func (it *IntegersOnce) MarshalJSON() ([]byte, error)
- func (it *IntegersOnce) RangesBoolMap() map[int]bool
- func (it *IntegersOnce) RangesMap() map[int]int
- func (it *IntegersOnce) Serialize() ([]byte, error)
- func (it *IntegersOnce) Slice() []int
- func (it *IntegersOnce) Sorted() []int
- func (it *IntegersOnce) String() string
- func (it *IntegersOnce) UnmarshalJSON(data []byte) error
- func (it *IntegersOnce) Value() []int
- func (it *IntegersOnce) Values() []int
- type StringOnce
- func (it *StringOnce) Bytes() []byte
- func (it *StringOnce) Error() error
- func (it *StringOnce) IsContains(equalString string) bool
- func (it *StringOnce) IsEmpty() bool
- func (it *StringOnce) IsEmptyOrWhitespace() bool
- func (it *StringOnce) IsEqual(equalString string) bool
- func (it *StringOnce) MarshalJSON() ([]byte, error)
- func (it *StringOnce) Serialize() ([]byte, error)
- func (it *StringOnce) String() string
- func (it *StringOnce) UnmarshalJSON(data []byte) error
- func (it *StringOnce) Value() string
- func (it *StringOnce) ValuePtr() *string
- type StringsOnce
- func (it *StringsOnce) Csv() string
- func (it *StringsOnce) CsvLines() []string
- func (it *StringsOnce) CsvOptions() string
- func (it *StringsOnce) Has(search string) bool
- func (it *StringsOnce) HasAll(searchTerms ...string) bool
- func (it *StringsOnce) HasAnyItem() bool
- func (it *StringsOnce) IsContains(search string) bool
- func (it *StringsOnce) IsEmpty() bool
- func (it *StringsOnce) IsEqual(comparingItems ...string) bool
- func (it StringsOnce) JsonStringMust() string
- func (it *StringsOnce) Length() int
- func (it *StringsOnce) List() []string
- func (it *StringsOnce) MarshalJSON() ([]byte, error)
- func (it *StringsOnce) RangesMap() map[string]int
- func (it *StringsOnce) SafeStrings() []string
- func (it StringsOnce) Serialize() ([]byte, error)
- func (it *StringsOnce) Sorted() []string
- func (it StringsOnce) String() string
- func (it *StringsOnce) Strings() []string
- func (it *StringsOnce) UniqueMap() map[string]bool
- func (it *StringsOnce) UniqueMapLock() map[string]bool
- func (it *StringsOnce) UnmarshalJSON(data []byte) error
- func (it *StringsOnce) Value() []string
- func (it *StringsOnce) Values() []string
- func (it *StringsOnce) ValuesPtr() *[]string
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) IsStringEmpty ¶
func (*AnyOnce) IsStringEmptyOrWhitespace ¶
type BoolOnce ¶
type BoolOnce struct {
// contains filtered or unexported fields
}
func NewBoolOnce ¶
func NewBoolOncePtr ¶
func (*BoolOnce) MarshalJSON ¶
func (*BoolOnce) UnmarshalJSON ¶
type ByteOnce ¶
type ByteOnce struct {
// contains filtered or unexported fields
}
func NewByteOnce ¶
func NewByteOncePtr ¶
func (*ByteOnce) IsNegative ¶
func (*ByteOnce) IsPositive ¶
func (*ByteOnce) MarshalJSON ¶
func (*ByteOnce) UnmarshalJSON ¶
type BytesOnce ¶ added in v1.2.16
type BytesOnce struct {
// contains filtered or unexported fields
}
func NewBytesOnce ¶ added in v1.2.16
func NewBytesOncePtr ¶ added in v1.2.16
func (*BytesOnce) MarshalJSON ¶ added in v1.2.16
func (*BytesOnce) UnmarshalJSON ¶ added in v1.2.16
type ErrorOnce ¶
type ErrorOnce struct {
// contains filtered or unexported fields
}
func NewErrorOnce ¶
func NewErrorOncePtr ¶
func (*ErrorOnce) ConcatNewString ¶
func (*ErrorOnce) HandleError ¶
func (it *ErrorOnce) HandleError()
HandleError with panic if error exist or else skip
Skip if no error type (NoError).
func (*ErrorOnce) HandleErrorWith ¶
HandleErrorWith by concatenating message and then panic if error exist or else skip
Skip if no error type (NoError).
func (*ErrorOnce) IsMessageEqual ¶
func (*ErrorOnce) IsNullOrEmpty ¶
func (*ErrorOnce) MarshalJSON ¶
func (*ErrorOnce) UnmarshalJSON ¶
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) IsNegative ¶
func (it *IntegerOnce) IsNegative() bool
func (*IntegerOnce) IsPositive ¶
func (it *IntegerOnce) IsPositive() bool
func (*IntegerOnce) IsZero ¶
func (it *IntegerOnce) IsZero() bool
func (*IntegerOnce) MarshalJSON ¶
func (it *IntegerOnce) MarshalJSON() ([]byte, error)
func (*IntegerOnce) Serialize ¶ added in v1.2.16
func (it *IntegerOnce) Serialize() ([]byte, error)
func (*IntegerOnce) String ¶
func (it *IntegerOnce) String() string
func (*IntegerOnce) UnmarshalJSON ¶
func (it *IntegerOnce) UnmarshalJSON(data []byte) error
func (*IntegerOnce) Value ¶
func (it *IntegerOnce) Value() int
type IntegersOnce ¶ added in v1.2.16
type IntegersOnce struct {
// contains filtered or unexported fields
}
func NewIntegersOnce ¶ added in v1.2.16
func NewIntegersOnce(initializerFunc func() []int) IntegersOnce
func NewIntegersOncePtr ¶ added in v1.2.16
func NewIntegersOncePtr(initializerFunc func() []int) *IntegersOnce
func (*IntegersOnce) Integers ¶ added in v1.2.16
func (it *IntegersOnce) Integers() []int
func (*IntegersOnce) IsEmpty ¶ added in v1.2.16
func (it *IntegersOnce) IsEmpty() bool
IsEmpty returns true if zero
func (*IntegersOnce) IsEqual ¶ added in v1.2.16
func (it *IntegersOnce) IsEqual(integerItems ...int) bool
func (*IntegersOnce) IsZero ¶ added in v1.2.16
func (it *IntegersOnce) IsZero() bool
func (*IntegersOnce) List ¶ added in v1.2.16
func (it *IntegersOnce) List() []int
func (*IntegersOnce) MarshalJSON ¶ added in v1.2.16
func (it *IntegersOnce) MarshalJSON() ([]byte, error)
func (*IntegersOnce) RangesBoolMap ¶ added in v1.2.16
func (it *IntegersOnce) RangesBoolMap() map[int]bool
func (*IntegersOnce) RangesMap ¶ added in v1.2.16
func (it *IntegersOnce) RangesMap() map[int]int
func (*IntegersOnce) Serialize ¶ added in v1.2.16
func (it *IntegersOnce) Serialize() ([]byte, error)
func (*IntegersOnce) Slice ¶ added in v1.2.16
func (it *IntegersOnce) Slice() []int
func (*IntegersOnce) Sorted ¶ added in v1.2.16
func (it *IntegersOnce) Sorted() []int
Sorted
Warning : Current values will be mutated, so better to make a clone of it.
func (*IntegersOnce) String ¶ added in v1.2.16
func (it *IntegersOnce) String() string
func (*IntegersOnce) UnmarshalJSON ¶ added in v1.2.16
func (it *IntegersOnce) UnmarshalJSON(data []byte) error
func (*IntegersOnce) Value ¶ added in v1.2.16
func (it *IntegersOnce) Value() []int
func (*IntegersOnce) Values ¶ added in v1.2.16
func (it *IntegersOnce) Values() []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) Serialize ¶ added in v1.2.16
func (it *StringOnce) Serialize() ([]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 ¶
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() 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) IsEqual ¶ added in v1.2.16
func (it *StringsOnce) IsEqual(comparingItems ...string) bool
func (StringsOnce) JsonStringMust ¶ added in v0.8.3
func (it StringsOnce) JsonStringMust() string
func (*StringsOnce) Length ¶
func (it *StringsOnce) Length() int
func (*StringsOnce) List ¶ added in v1.0.8
func (it *StringsOnce) List() []string
func (*StringsOnce) MarshalJSON ¶
func (it *StringsOnce) MarshalJSON() ([]byte, error)
func (*StringsOnce) RangesMap ¶ added in v1.2.16
func (it *StringsOnce) RangesMap() map[string]int
func (*StringsOnce) SafeStrings ¶ added in v1.0.8
func (it *StringsOnce) SafeStrings() []string
func (StringsOnce) Serialize ¶ added in v1.2.16
func (it StringsOnce) Serialize() ([]byte, error)
func (*StringsOnce) Sorted ¶ added in v1.2.16
func (it *StringsOnce) Sorted() []string
Sorted
Warning : Current values will be mutated, so better to make a clone of it.
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
func (*StringsOnce) ValuesPtr ¶ added in v1.2.16
func (it *StringsOnce) ValuesPtr() *[]string
Click to show internal directories.
Click to hide internal directories.