Documentation
¶
Index ¶
- Variables
- func JoinPrependUsingDot(prepend interface{}, anyItems ...interface{}) string
- func PrependJoin(joiner string, prepend interface{}, anyItems ...interface{}) string
- type BasicByte
- func (it BasicByte) AppendPrependJoinNamer(joiner string, appendVal, prependVal toNamer) string
- func (it BasicByte) AppendPrependJoinValue(joiner string, appendVal, prependVal byte) string
- func (it BasicByte) AsBasicByter() BasicByter
- func (it BasicByte) EnumType() enumtype.Variant
- func (it BasicByte) Format(format string, value interface{}) string
- func (it BasicByte) GetStringValue(input byte) string
- func (it BasicByte) GetValueByName(name string) (byte, error)
- func (it BasicByte) GetValueByString(jsonValueString string) byte
- func (it BasicByte) Hashmap() map[string]byte
- func (it BasicByte) HashmapPtr() *map[string]byte
- func (it BasicByte) IsAnyNamesOf(value byte, names ...string) bool
- func (it BasicByte) IsAnyOf(value byte, givenBytes ...byte) bool
- func (it BasicByte) IsValidRange(value byte) bool
- func (it BasicByte) JsonString(input interface{}) string
- func (it BasicByte) Max() byte
- func (it BasicByte) Min() byte
- func (it BasicByte) NameWithValue(value interface{}) string
- func (it BasicByte) NameWithValueOption(value interface{}, isIncludeQuotation bool) string
- func (it BasicByte) RangeNamesCsv() string
- func (it BasicByte) Ranges() []byte
- func (it BasicByte) RangesInvalidErr() error
- func (it BasicByte) RangesInvalidMessage() string
- func (it BasicByte) StringRanges() []string
- func (it BasicByte) StringRangesPtr() *[]string
- func (it BasicByte) ToEnumJsonBytes(value byte) []byte
- func (it BasicByte) ToEnumString(value byte) string
- func (it BasicByte) ToNumberString(valueInNumberFormat interface{}) string
- func (it BasicByte) TypeName() string
- func (it BasicByte) UnmarshallToValue(isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte) (byte, error)
- func (it BasicByte) ValueString(value interface{}) string
- type BasicByter
- type BasicInt16
- func (it BasicInt16) AppendPrependJoinNamer(joiner string, appendVal, prependVal coreinterface.ToNamer) string
- func (it BasicInt16) AppendPrependJoinValue(joiner string, appendVal, prependVal int16) string
- func (it BasicInt16) EnumType() enumtype.Variant
- func (it BasicInt16) Format(format string, value interface{}) string
- func (it BasicInt16) GetStringValue(input int16) string
- func (it BasicInt16) GetValueByName(name string) (int16, error)
- func (it BasicInt16) GetValueByString(valueString string) int16
- func (it BasicInt16) Hashmap() map[string]int16
- func (it BasicInt16) HashmapPtr() *map[string]int16
- func (it BasicInt16) IsAnyNamesOf(value int16, names ...string) bool
- func (it BasicInt16) IsAnyOf(value int16, checkingItems ...int16) bool
- func (it BasicInt16) IsValidRange(value int16) bool
- func (it BasicInt16) JsonString(input interface{}) string
- func (it BasicInt16) Max() int16
- func (it BasicInt16) Min() int16
- func (it BasicInt16) NameWithValue(value interface{}) string
- func (it BasicInt16) NameWithValueOption(value interface{}, isIncludeQuotation bool) string
- func (it BasicInt16) RangeNamesCsv() string
- func (it BasicInt16) Ranges() []int16
- func (it BasicInt16) RangesInvalidErr() error
- func (it BasicInt16) RangesInvalidMessage() string
- func (it BasicInt16) StringRanges() []string
- func (it BasicInt16) StringRangesPtr() *[]string
- func (it BasicInt16) ToEnumJsonBytes(value int16) []byte
- func (it BasicInt16) ToEnumString(value int16) string
- func (it BasicInt16) ToNumberString(valueInRawFormat interface{}) string
- func (it BasicInt16) TypeName() string
- func (it BasicInt16) UnmarshallToValue(isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte) (int16, error)
- func (it BasicInt16) ValueString(value interface{}) string
- type BasicInt32
- func (it BasicInt32) AppendPrependJoinNamer(joiner string, appendVal, prependVal coreinterface.ToNamer) string
- func (it BasicInt32) AppendPrependJoinValue(joiner string, appendVal, prependVal int32) string
- func (it BasicInt32) EnumType() enumtype.Variant
- func (it BasicInt32) Format(format string, value interface{}) string
- func (it BasicInt32) GetStringValue(input int32) string
- func (it BasicInt32) GetValueByName(name string) (int32, error)
- func (it BasicInt32) GetValueByString(valueString string) int32
- func (it BasicInt32) Hashmap() map[string]int32
- func (it BasicInt32) HashmapPtr() *map[string]int32
- func (it BasicInt32) IsAnyNamesOf(value int32, names ...string) bool
- func (it BasicInt32) IsAnyOf(value int32, checkingItems ...int32) bool
- func (it BasicInt32) IsValidRange(value int32) bool
- func (it BasicInt32) JsonString(input interface{}) string
- func (it BasicInt32) Max() int32
- func (it BasicInt32) Min() int32
- func (it BasicInt32) NameWithValue(value interface{}) string
- func (it BasicInt32) NameWithValueOption(value interface{}, isIncludeQuotation bool) string
- func (it BasicInt32) RangeNamesCsv() string
- func (it BasicInt32) Ranges() []int32
- func (it BasicInt32) RangesInvalidErr() error
- func (it BasicInt32) RangesInvalidMessage() string
- func (it BasicInt32) StringRanges() []string
- func (it BasicInt32) StringRangesPtr() *[]string
- func (it BasicInt32) ToEnumJsonBytes(value int32) []byte
- func (it BasicInt32) ToEnumString(value int32) string
- func (it BasicInt32) ToNumberString(valueInRawFormat interface{}) string
- func (it BasicInt32) TypeName() string
- func (it BasicInt32) UnmarshallToValue(isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte) (int32, error)
- func (it BasicInt32) ValueString(value interface{}) string
- type BasicInt8
- func (it BasicInt8) AppendPrependJoinNamer(joiner string, appendVal, prependVal coreinterface.ToNamer) string
- func (it BasicInt8) AppendPrependJoinValue(joiner string, appendVal, prependVal int8) string
- func (it BasicInt8) EnumType() enumtype.Variant
- func (it BasicInt8) Format(format string, value interface{}) string
- func (it BasicInt8) GetStringValue(input int8) string
- func (it BasicInt8) GetValueByName(name string) (int8, error)
- func (it BasicInt8) GetValueByString(valueString string) int8
- func (it BasicInt8) Hashmap() map[string]int8
- func (it BasicInt8) HashmapPtr() *map[string]int8
- func (it BasicInt8) IsAnyNamesOf(value int8, names ...string) bool
- func (it BasicInt8) IsAnyOf(value int8, checkingItems ...int8) bool
- func (it BasicInt8) IsValidRange(value int8) bool
- func (it BasicInt8) JsonString(input interface{}) string
- func (it BasicInt8) Max() int8
- func (it BasicInt8) Min() int8
- func (it BasicInt8) NameWithValue(value interface{}) string
- func (it BasicInt8) NameWithValueOption(value interface{}, isIncludeQuotation bool) string
- func (it BasicInt8) RangeNamesCsv() string
- func (it BasicInt8) Ranges() []int8
- func (it BasicInt8) RangesInvalidErr() error
- func (it BasicInt8) RangesInvalidMessage() string
- func (it BasicInt8) StringRanges() []string
- func (it BasicInt8) StringRangesPtr() *[]string
- func (it BasicInt8) ToEnumJsonBytes(value int8) []byte
- func (it BasicInt8) ToEnumString(value int8) string
- func (it BasicInt8) ToNumberString(valueInRawFormat interface{}) string
- func (it BasicInt8) TypeName() string
- func (it BasicInt8) UnmarshallToValue(isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte) (int8, error)
- func (it BasicInt8) ValueString(value interface{}) string
- type BasicString
- func (it BasicString) AppendPrependJoinNamer(joiner string, appendVal, prependVal coreinterface.ToNamer) string
- func (it BasicString) AppendPrependJoinValue(joiner string, appendVal, prependVal string) string
- func (it BasicString) EnumType() enumtype.Variant
- func (it BasicString) Format(format string, value interface{}) string
- func (it BasicString) GetValueByName(name string) (string, error)
- func (it BasicString) Hashset() map[string]bool
- func (it BasicString) HashsetPtr() *map[string]bool
- func (it BasicString) IsAnyNamesOf(valueName string, names ...string) bool
- func (it BasicString) IsAnyOf(value string, checkingItems ...string) bool
- func (it BasicString) IsValidRange(value string) bool
- func (it BasicString) JsonString(input interface{}) string
- func (it BasicString) Max() string
- func (it BasicString) Min() string
- func (it BasicString) NameWithValue(value interface{}) string
- func (it BasicString) NameWithValueOption(value interface{}, isIncludeQuotation bool) string
- func (it BasicString) RangeNamesCsv() string
- func (it BasicString) Ranges() []string
- func (it BasicString) RangesInvalidErr() error
- func (it BasicString) RangesInvalidMessage() string
- func (it BasicString) StringRanges() []string
- func (it BasicString) StringRangesPtr() *[]string
- func (it BasicString) ToEnumJsonBytes(value string) []byte
- func (it BasicString) ToEnumString(input interface{}) string
- func (it BasicString) TypeName() string
- func (it BasicString) UnmarshallToValue(isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte) (string, error)
- func (it BasicString) ValueString(value interface{}) string
- type BasicUInt16
- func (it BasicUInt16) AppendPrependJoinNamer(joiner string, appendVal, prependVal coreinterface.ToNamer) string
- func (it BasicUInt16) AppendPrependJoinValue(joiner string, appendVal, prependVal uint16) string
- func (it BasicUInt16) EnumType() enumtype.Variant
- func (it BasicUInt16) Format(format string, value interface{}) string
- func (it BasicUInt16) GetStringValue(input uint16) string
- func (it BasicUInt16) GetValueByName(name string) (uint16, error)
- func (it BasicUInt16) GetValueByString(valueString string) uint16
- func (it BasicUInt16) Hashmap() map[string]uint16
- func (it BasicUInt16) HashmapPtr() *map[string]uint16
- func (it BasicUInt16) IsAnyNamesOf(value uint16, names ...string) bool
- func (it BasicUInt16) IsAnyOf(value uint16, checkingItems ...uint16) bool
- func (it BasicUInt16) IsValidRange(value uint16) bool
- func (it BasicUInt16) JsonString(input interface{}) string
- func (it BasicUInt16) Max() uint16
- func (it BasicUInt16) Min() uint16
- func (it BasicUInt16) NameWithValue(value interface{}) string
- func (it BasicUInt16) NameWithValueOption(value interface{}, isIncludeQuotation bool) string
- func (it BasicUInt16) RangeNamesCsv() string
- func (it BasicUInt16) Ranges() []uint16
- func (it BasicUInt16) RangesInvalidErr() error
- func (it BasicUInt16) RangesInvalidMessage() string
- func (it BasicUInt16) StringRanges() []string
- func (it BasicUInt16) StringRangesPtr() *[]string
- func (it BasicUInt16) ToEnumJsonBytes(value uint16) []byte
- func (it BasicUInt16) ToEnumString(value uint16) string
- func (it BasicUInt16) ToNumberString(valueInRawFormat interface{}) string
- func (it BasicUInt16) TypeName() string
- func (it BasicUInt16) UnmarshallToValue(isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte) (uint16, error)
- func (it BasicUInt16) ValueString(value interface{}) string
Constants ¶
This section is empty.
Variables ¶
var (
New = newCreator{}
)
Functions ¶
func JoinPrependUsingDot ¶ added in v0.8.3
func JoinPrependUsingDot( prepend interface{}, anyItems ...interface{}, ) string
func PrependJoin ¶ added in v0.8.3
Types ¶
type BasicByte ¶
type BasicByte struct {
// contains filtered or unexported fields
}
func (BasicByte) AppendPrependJoinNamer ¶ added in v0.8.3
func (BasicByte) AppendPrependJoinValue ¶ added in v0.8.3
func (BasicByte) AsBasicByter ¶ added in v1.1.9
func (it BasicByte) AsBasicByter() BasicByter
func (BasicByte) Format ¶ added in v1.1.9
Format
Outputs name and value by given format.
sample-format :
- "Enum of {type-name} - {name} - {value}"
sample-format-output :
- "Enum of EnumFullName - Invalid - 0"
Key-Meaning :
- {type-name} : represents type-name string
- {name} : represents name string
- {value} : represents value string
func (BasicByte) GetStringValue ¶
func (BasicByte) GetValueByName ¶ added in v1.1.2
func (BasicByte) GetValueByString ¶
func (BasicByte) HashmapPtr ¶
func (BasicByte) IsAnyNamesOf ¶ added in v1.2.2
func (BasicByte) IsValidRange ¶
func (BasicByte) JsonString ¶ added in v0.9.5
func (it BasicByte) JsonString(input interface{}) string
func (BasicByte) NameWithValue ¶ added in v0.9.5
func (it BasicByte) NameWithValue( value interface{}, ) string
NameWithValue
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicByte) NameWithValueOption ¶ added in v0.9.5
NameWithValueOption
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicByte) RangeNamesCsv ¶
func (it BasicByte) RangeNamesCsv() string
func (BasicByte) RangesInvalidErr ¶
func (it BasicByte) RangesInvalidErr() error
func (BasicByte) RangesInvalidMessage ¶
func (it BasicByte) RangesInvalidMessage() string
func (BasicByte) StringRanges ¶
func (it BasicByte) StringRanges() []string
func (BasicByte) StringRangesPtr ¶
func (it BasicByte) StringRangesPtr() *[]string
func (BasicByte) ToEnumJsonBytes ¶ added in v0.4.2
ToEnumJsonBytes used for MarshalJSON from map
func (BasicByte) ToEnumString ¶
func (BasicByte) ToNumberString ¶ added in v0.4.6
func (BasicByte) UnmarshallToValue ¶ added in v0.6.9
func (it BasicByte) UnmarshallToValue( isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte, ) (byte, error)
UnmarshallToValue Mostly used for UnmarshalJSON
Given bytes string enum value and transpile to exact enum raw value using map
func (BasicByte) ValueString ¶ added in v1.1.9
func (it BasicByte) ValueString( value interface{}, ) string
type BasicByter ¶ added in v1.1.9
type BasicByter interface { IsAnyOf( value byte, givenBytes ...byte, ) bool Max() byte Min() byte GetValueByString( jsonValueString string, ) byte GetValueByName( name string, ) (byte, error) GetStringValue( input byte, ) string Ranges() []byte Hashmap() map[string]byte HashmapPtr() *map[string]byte IsValidRange( value byte, ) bool ToEnumJsonBytes( value byte, ) []byte ToEnumString( value byte, ) string AppendPrependJoinValue( joiner string, appendVal, prependVal byte, ) string AppendPrependJoinNamer( joiner string, appendVal, prependVal toNamer, ) string ToNumberString( valueInRawFormat interface{}, ) string // UnmarshallToValue // // isMappedToFirstIfEmpty: maps invalid values to first item UnmarshallToValue( isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte, ) (byte, error) }
type BasicInt16 ¶
type BasicInt16 struct {
// contains filtered or unexported fields
}
func (BasicInt16) AppendPrependJoinNamer ¶ added in v0.8.3
func (it BasicInt16) AppendPrependJoinNamer( joiner string, appendVal, prependVal coreinterface.ToNamer, ) string
func (BasicInt16) AppendPrependJoinValue ¶ added in v0.8.3
func (it BasicInt16) AppendPrependJoinValue( joiner string, appendVal, prependVal int16, ) string
func (BasicInt16) EnumType ¶ added in v1.1.9
func (it BasicInt16) EnumType() enumtype.Variant
func (BasicInt16) Format ¶ added in v1.1.9
Format
Outputs name and value by given format.
sample-format :
- "Enum of {type-name} - {name} - {value}"
sample-format-output :
- "Enum of EnumFullName - Invalid - 0"
Key-Meaning :
- {type-name} : represents type-name string
- {name} : represents name string
- {value} : represents value string
func (BasicInt16) GetStringValue ¶
func (it BasicInt16) GetStringValue(input int16) string
func (BasicInt16) GetValueByName ¶ added in v1.1.2
func (it BasicInt16) GetValueByName( name string, ) (int16, error)
func (BasicInt16) GetValueByString ¶
func (it BasicInt16) GetValueByString(valueString string) int16
func (BasicInt16) Hashmap ¶
func (it BasicInt16) Hashmap() map[string]int16
func (BasicInt16) HashmapPtr ¶
func (it BasicInt16) HashmapPtr() *map[string]int16
func (BasicInt16) IsAnyNamesOf ¶ added in v1.2.2
func (it BasicInt16) IsAnyNamesOf( value int16, names ...string, ) bool
func (BasicInt16) IsAnyOf ¶ added in v0.4.6
func (it BasicInt16) IsAnyOf(value int16, checkingItems ...int16) bool
func (BasicInt16) IsValidRange ¶
func (it BasicInt16) IsValidRange(value int16) bool
func (BasicInt16) JsonString ¶ added in v0.9.5
func (it BasicInt16) JsonString(input interface{}) string
func (BasicInt16) Max ¶
func (it BasicInt16) Max() int16
func (BasicInt16) Min ¶
func (it BasicInt16) Min() int16
func (BasicInt16) NameWithValue ¶ added in v0.9.5
func (it BasicInt16) NameWithValue( value interface{}, ) string
NameWithValue
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicInt16) NameWithValueOption ¶ added in v0.9.5
NameWithValueOption
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicInt16) RangeNamesCsv ¶
func (it BasicInt16) RangeNamesCsv() string
func (BasicInt16) Ranges ¶
func (it BasicInt16) Ranges() []int16
func (BasicInt16) RangesInvalidErr ¶
func (it BasicInt16) RangesInvalidErr() error
func (BasicInt16) RangesInvalidMessage ¶
func (it BasicInt16) RangesInvalidMessage() string
func (BasicInt16) StringRanges ¶
func (it BasicInt16) StringRanges() []string
func (BasicInt16) StringRangesPtr ¶
func (it BasicInt16) StringRangesPtr() *[]string
func (BasicInt16) ToEnumJsonBytes ¶ added in v0.4.2
func (it BasicInt16) ToEnumJsonBytes(value int16) []byte
ToEnumJsonBytes used for MarshalJSON from map
func (BasicInt16) ToEnumString ¶
func (it BasicInt16) ToEnumString(value int16) string
func (BasicInt16) ToNumberString ¶ added in v0.4.6
func (it BasicInt16) ToNumberString(valueInRawFormat interface{}) string
func (BasicInt16) UnmarshallToValue ¶ added in v0.6.9
func (it BasicInt16) UnmarshallToValue( isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte, ) (int16, error)
UnmarshallToValue Mostly used for UnmarshalJSON
Given bytes string enum value and transpile to exact enum raw value using map
func (BasicInt16) ValueString ¶ added in v1.1.9
func (it BasicInt16) ValueString( value interface{}, ) string
type BasicInt32 ¶
type BasicInt32 struct {
// contains filtered or unexported fields
}
func (BasicInt32) AppendPrependJoinNamer ¶ added in v0.8.3
func (it BasicInt32) AppendPrependJoinNamer( joiner string, appendVal, prependVal coreinterface.ToNamer, ) string
func (BasicInt32) AppendPrependJoinValue ¶ added in v0.8.3
func (it BasicInt32) AppendPrependJoinValue( joiner string, appendVal, prependVal int32, ) string
func (BasicInt32) EnumType ¶ added in v1.1.9
func (it BasicInt32) EnumType() enumtype.Variant
func (BasicInt32) Format ¶ added in v1.1.9
Format
Outputs name and value by given format.
sample-format :
- "Enum of {type-name} - {name} - {value}"
sample-format-output :
- "Enum of EnumFullName - Invalid - 0"
Key-Meaning :
- {type-name} : represents type-name string
- {name} : represents name string
- {value} : represents value string
func (BasicInt32) GetStringValue ¶
func (it BasicInt32) GetStringValue(input int32) string
func (BasicInt32) GetValueByName ¶ added in v1.1.2
func (it BasicInt32) GetValueByName(name string) (int32, error)
func (BasicInt32) GetValueByString ¶
func (it BasicInt32) GetValueByString(valueString string) int32
func (BasicInt32) Hashmap ¶
func (it BasicInt32) Hashmap() map[string]int32
func (BasicInt32) HashmapPtr ¶
func (it BasicInt32) HashmapPtr() *map[string]int32
func (BasicInt32) IsAnyNamesOf ¶ added in v1.2.2
func (it BasicInt32) IsAnyNamesOf( value int32, names ...string, ) bool
func (BasicInt32) IsAnyOf ¶ added in v0.4.6
func (it BasicInt32) IsAnyOf(value int32, checkingItems ...int32) bool
func (BasicInt32) IsValidRange ¶
func (it BasicInt32) IsValidRange(value int32) bool
func (BasicInt32) JsonString ¶ added in v0.9.5
func (it BasicInt32) JsonString(input interface{}) string
func (BasicInt32) Max ¶
func (it BasicInt32) Max() int32
func (BasicInt32) Min ¶
func (it BasicInt32) Min() int32
func (BasicInt32) NameWithValue ¶ added in v0.9.5
func (it BasicInt32) NameWithValue( value interface{}, ) string
NameWithValue
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicInt32) NameWithValueOption ¶ added in v0.9.5
NameWithValueOption
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicInt32) RangeNamesCsv ¶
func (it BasicInt32) RangeNamesCsv() string
func (BasicInt32) Ranges ¶
func (it BasicInt32) Ranges() []int32
func (BasicInt32) RangesInvalidErr ¶
func (it BasicInt32) RangesInvalidErr() error
func (BasicInt32) RangesInvalidMessage ¶
func (it BasicInt32) RangesInvalidMessage() string
func (BasicInt32) StringRanges ¶
func (it BasicInt32) StringRanges() []string
func (BasicInt32) StringRangesPtr ¶
func (it BasicInt32) StringRangesPtr() *[]string
func (BasicInt32) ToEnumJsonBytes ¶ added in v0.4.2
func (it BasicInt32) ToEnumJsonBytes(value int32) []byte
ToEnumJsonBytes used for MarshalJSON from map
func (BasicInt32) ToEnumString ¶
func (it BasicInt32) ToEnumString(value int32) string
func (BasicInt32) ToNumberString ¶ added in v0.4.6
func (it BasicInt32) ToNumberString(valueInRawFormat interface{}) string
func (BasicInt32) UnmarshallToValue ¶ added in v0.6.9
func (it BasicInt32) UnmarshallToValue( isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte, ) (int32, error)
UnmarshallToValue Mostly used for UnmarshalJSON
Given bytes string enum value and transpile to exact enum raw value using map
func (BasicInt32) ValueString ¶ added in v1.1.9
func (it BasicInt32) ValueString( value interface{}, ) string
type BasicInt8 ¶
type BasicInt8 struct {
// contains filtered or unexported fields
}
func (BasicInt8) AppendPrependJoinNamer ¶ added in v0.8.3
func (it BasicInt8) AppendPrependJoinNamer( joiner string, appendVal, prependVal coreinterface.ToNamer, ) string
func (BasicInt8) AppendPrependJoinValue ¶ added in v0.8.3
func (BasicInt8) Format ¶ added in v1.1.9
Format
Outputs name and value by given format.
sample-format :
- "Enum of {type-name} - {name} - {value}"
sample-format-output :
- "Enum of EnumFullName - Invalid - 0"
Key-Meaning :
- {type-name} : represents type-name string
- {name} : represents name string
- {value} : represents value string
func (BasicInt8) GetStringValue ¶
func (BasicInt8) GetValueByName ¶ added in v1.1.2
func (BasicInt8) GetValueByString ¶
func (BasicInt8) HashmapPtr ¶
func (BasicInt8) IsAnyNamesOf ¶ added in v1.2.2
func (BasicInt8) IsValidRange ¶
func (BasicInt8) JsonString ¶ added in v0.9.5
func (it BasicInt8) JsonString(input interface{}) string
func (BasicInt8) NameWithValue ¶ added in v0.9.5
func (it BasicInt8) NameWithValue( value interface{}, ) string
NameWithValue
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicInt8) NameWithValueOption ¶ added in v0.9.5
NameWithValueOption
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicInt8) RangeNamesCsv ¶
func (it BasicInt8) RangeNamesCsv() string
func (BasicInt8) RangesInvalidErr ¶
func (it BasicInt8) RangesInvalidErr() error
func (BasicInt8) RangesInvalidMessage ¶
func (it BasicInt8) RangesInvalidMessage() string
func (BasicInt8) StringRanges ¶
func (it BasicInt8) StringRanges() []string
func (BasicInt8) StringRangesPtr ¶
func (it BasicInt8) StringRangesPtr() *[]string
func (BasicInt8) ToEnumString ¶
func (BasicInt8) ToNumberString ¶ added in v0.4.6
func (BasicInt8) UnmarshallToValue ¶ added in v0.6.9
func (it BasicInt8) UnmarshallToValue( isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte, ) (int8, error)
UnmarshallToValue Mostly used for UnmarshalJSON
Given bytes string enum value and transpile to exact enum raw value using map
func (BasicInt8) ValueString ¶ added in v1.1.9
func (it BasicInt8) ValueString( value interface{}, ) string
type BasicString ¶
type BasicString struct {
// contains filtered or unexported fields
}
func (BasicString) AppendPrependJoinNamer ¶ added in v0.8.3
func (it BasicString) AppendPrependJoinNamer( joiner string, appendVal, prependVal coreinterface.ToNamer, ) string
func (BasicString) AppendPrependJoinValue ¶ added in v0.8.3
func (it BasicString) AppendPrependJoinValue( joiner string, appendVal, prependVal string, ) string
func (BasicString) EnumType ¶ added in v1.1.9
func (it BasicString) EnumType() enumtype.Variant
func (BasicString) Format ¶ added in v1.1.9
Format
Outputs name and value by given format.
sample-format :
- "Enum of {type-name} - {name} - {value}"
sample-format-output :
- "Enum of EnumFullName - Invalid - 0"
Key-Meaning :
- {type-name} : represents type-name string
- {name} : represents name string
- {value} : represents value string
func (BasicString) GetValueByName ¶ added in v1.1.2
func (it BasicString) GetValueByName(name string) (string, error)
func (BasicString) Hashset ¶
func (it BasicString) Hashset() map[string]bool
func (BasicString) HashsetPtr ¶
func (it BasicString) HashsetPtr() *map[string]bool
func (BasicString) IsAnyNamesOf ¶ added in v1.2.2
func (it BasicString) IsAnyNamesOf( valueName string, names ...string, ) bool
func (BasicString) IsAnyOf ¶ added in v0.4.6
func (it BasicString) IsAnyOf(value string, checkingItems ...string) bool
func (BasicString) IsValidRange ¶
func (it BasicString) IsValidRange(value string) bool
func (BasicString) JsonString ¶ added in v0.9.5
func (it BasicString) JsonString(input interface{}) string
func (BasicString) Max ¶
func (it BasicString) Max() string
func (BasicString) Min ¶
func (it BasicString) Min() string
func (BasicString) NameWithValue ¶ added in v0.9.5
func (it BasicString) NameWithValue( value interface{}, ) string
NameWithValue
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicString) NameWithValueOption ¶ added in v0.9.5
NameWithValueOption
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicString) RangeNamesCsv ¶
func (it BasicString) RangeNamesCsv() string
func (BasicString) Ranges ¶
func (it BasicString) Ranges() []string
func (BasicString) RangesInvalidErr ¶
func (it BasicString) RangesInvalidErr() error
func (BasicString) RangesInvalidMessage ¶
func (it BasicString) RangesInvalidMessage() string
func (BasicString) StringRanges ¶
func (it BasicString) StringRanges() []string
func (BasicString) StringRangesPtr ¶
func (it BasicString) StringRangesPtr() *[]string
func (BasicString) ToEnumJsonBytes ¶ added in v0.4.2
func (it BasicString) ToEnumJsonBytes(value string) []byte
ToEnumJsonBytes used for MarshalJSON from map
func (BasicString) ToEnumString ¶
func (it BasicString) ToEnumString( input interface{}, ) string
func (BasicString) UnmarshallToValue ¶ added in v0.6.9
func (it BasicString) UnmarshallToValue( isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte, ) (string, error)
UnmarshallToValue Mostly used for UnmarshalJSON
Given bytes string enum value and transpile to exact enum raw value using map
func (BasicString) ValueString ¶ added in v1.1.9
func (it BasicString) ValueString( value interface{}, ) string
type BasicUInt16 ¶ added in v1.1.9
type BasicUInt16 struct {
// contains filtered or unexported fields
}
func (BasicUInt16) AppendPrependJoinNamer ¶ added in v1.1.9
func (it BasicUInt16) AppendPrependJoinNamer( joiner string, appendVal, prependVal coreinterface.ToNamer, ) string
func (BasicUInt16) AppendPrependJoinValue ¶ added in v1.1.9
func (it BasicUInt16) AppendPrependJoinValue( joiner string, appendVal, prependVal uint16, ) string
func (BasicUInt16) EnumType ¶ added in v1.1.9
func (it BasicUInt16) EnumType() enumtype.Variant
func (BasicUInt16) Format ¶ added in v1.1.9
Format
Outputs name and value by given format.
sample-format :
- "Enum of {type-name} - {name} - {value}"
sample-format-output :
- "Enum of EnumFullName - Invalid - 0"
Key-Meaning :
- {type-name} : represents type-name string
- {name} : represents name string
- {value} : represents value string
func (BasicUInt16) GetStringValue ¶ added in v1.1.9
func (it BasicUInt16) GetStringValue(input uint16) string
func (BasicUInt16) GetValueByName ¶ added in v1.1.9
func (it BasicUInt16) GetValueByName( name string, ) (uint16, error)
func (BasicUInt16) GetValueByString ¶ added in v1.1.9
func (it BasicUInt16) GetValueByString(valueString string) uint16
func (BasicUInt16) Hashmap ¶ added in v1.1.9
func (it BasicUInt16) Hashmap() map[string]uint16
func (BasicUInt16) HashmapPtr ¶ added in v1.1.9
func (it BasicUInt16) HashmapPtr() *map[string]uint16
func (BasicUInt16) IsAnyNamesOf ¶ added in v1.2.2
func (it BasicUInt16) IsAnyNamesOf( value uint16, names ...string, ) bool
func (BasicUInt16) IsAnyOf ¶ added in v1.1.9
func (it BasicUInt16) IsAnyOf(value uint16, checkingItems ...uint16) bool
func (BasicUInt16) IsValidRange ¶ added in v1.1.9
func (it BasicUInt16) IsValidRange(value uint16) bool
func (BasicUInt16) JsonString ¶ added in v1.1.9
func (it BasicUInt16) JsonString(input interface{}) string
func (BasicUInt16) Max ¶ added in v1.1.9
func (it BasicUInt16) Max() uint16
func (BasicUInt16) Min ¶ added in v1.1.9
func (it BasicUInt16) Min() uint16
func (BasicUInt16) NameWithValue ¶ added in v1.1.9
func (it BasicUInt16) NameWithValue( value interface{}, ) string
NameWithValue
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicUInt16) NameWithValueOption ¶ added in v1.1.9
NameWithValueOption
Warning :
Make sure non ptr is called + String should also be attached with non ptr.
func (BasicUInt16) RangeNamesCsv ¶ added in v1.1.9
func (it BasicUInt16) RangeNamesCsv() string
func (BasicUInt16) Ranges ¶ added in v1.1.9
func (it BasicUInt16) Ranges() []uint16
func (BasicUInt16) RangesInvalidErr ¶ added in v1.1.9
func (it BasicUInt16) RangesInvalidErr() error
func (BasicUInt16) RangesInvalidMessage ¶ added in v1.1.9
func (it BasicUInt16) RangesInvalidMessage() string
func (BasicUInt16) StringRanges ¶ added in v1.1.9
func (it BasicUInt16) StringRanges() []string
func (BasicUInt16) StringRangesPtr ¶ added in v1.1.9
func (it BasicUInt16) StringRangesPtr() *[]string
func (BasicUInt16) ToEnumJsonBytes ¶ added in v1.1.9
func (it BasicUInt16) ToEnumJsonBytes(value uint16) []byte
ToEnumJsonBytes used for MarshalJSON from map
func (BasicUInt16) ToEnumString ¶ added in v1.1.9
func (it BasicUInt16) ToEnumString(value uint16) string
func (BasicUInt16) ToNumberString ¶ added in v1.1.9
func (it BasicUInt16) ToNumberString(valueInRawFormat interface{}) string
func (BasicUInt16) UnmarshallToValue ¶ added in v1.1.9
func (it BasicUInt16) UnmarshallToValue( isMappedToFirstIfEmpty bool, jsonUnmarshallingValue []byte, ) (uint16, error)
UnmarshallToValue Mostly used for UnmarshalJSON
Given bytes string enum value and transpile to exact enum raw value using map
func (BasicUInt16) ValueString ¶ added in v1.1.9
func (it BasicUInt16) ValueString( value interface{}, ) string
Source Files
¶
- BasicByte.go
- BasicByter.go
- BasicInt16.go
- BasicInt32.go
- BasicInt8.go
- BasicString.go
- BasicUInt16.go
- JoinPrependUsingDot.go
- PrependJoin.go
- consts.go
- enumUnmarshallingMappingFailedError.go
- newBasicByteCreator.go
- newBasicInt16Creator.go
- newBasicInt32Creator.go
- newBasicInt8Creator.go
- newBasicStringCreator.go
- newBasicUInt16Creator.go
- newCreator.go
- numberEnumBase.go
- toJsonName.go
- toNamer.go
- vars.go