Documentation ¶
Index ¶
- Constants
- Variables
- type FileReader
- type Variant
- func GetSet(isCondition bool, trueValue Variant, falseValue Variant) Variant
- func GetSetVariant(isCondition bool, trueValue byte, falseValue byte) Variant
- func New(val string) Variant
- func NewUsingEnum(valueEnum enuminf.BasicEnumer) Variant
- func NewUsingInteger(valueInteger int) Variant
- func NewUsingJsonResult(jsonResult *corejson.Result) Variant
- func NewUsingJsoner(jsoner corejson.Jsoner) Variant
- func NewUsingStringer(valueStringer fmt.Stringer) Variant
- func (it Variant) Add(n string) Variant
- func (it Variant) AddAnother(n Variant) Variant
- func (it Variant) AddPrefixOnMissing(prefix string) (compiled string)
- func (it Variant) AddSuffixOnMissing(suffixAdd string) (compiled string)
- func (it Variant) AllChars() []byte
- func (it Variant) AllNameValues() []string
- func (it Variant) AllRunes() []rune
- func (it Variant) AndHasElement(n Variant) bool
- func (it Variant) AndIsEmpty(n Variant) bool
- func (it Variant) Append(n Variant) Variant
- func (it Variant) AppendIf(isAppend bool, n Variant) Variant
- func (it Variant) AppendStringIf(isAppend bool, n string) Variant
- func (it Variant) AsBasicEnumer() enuminf.BasicEnumer
- func (it Variant) ByteType() (val bytetype.Variant, isValid bool)
- func (it Variant) ConvInteger() (int, error)
- func (it Variant) Count() int
- func (it Variant) CurlyWrap() string
- func (it Variant) EnumType() enuminf.EnumTyper
- func (it Variant) FileReader() FileReader
- func (it Variant) Format(format string) (compiled string)
- func (it Variant) HasAnyItem() bool
- func (it Variant) HasInAliasMap(givenMap map[string]Variant, checkingElement Variant) bool
- func (it Variant) HasPrefix(n string) bool
- func (it Variant) HasSuffix(n string) bool
- func (it Variant) Index(n string) int
- func (it Variant) IntType() inttype.Variant
- func (it Variant) Integer() int
- func (it Variant) IntegerDefaultVal(defaultVal int) (valueInt int, isSuccess bool)
- func (it Variant) IntegerEnumRanges() []int
- func (it Variant) Is(n Variant) bool
- func (it Variant) IsAnyNamesOf(names ...string) bool
- func (it Variant) IsCompareResult(n string, compare corecomparator.Compare) bool
- func (it Variant) IsContains(n string) bool
- func (it Variant) IsDefined() bool
- func (it Variant) IsEmpty() bool
- func (it Variant) IsEndsWith(n string) bool
- func (it Variant) IsEqual(n string) bool
- func (it Variant) IsEqualAnother(n Variant) bool
- func (it Variant) IsEqualTrim(right string) bool
- func (it Variant) IsGreater(n string) bool
- func (it Variant) IsGreaterEqual(n string) bool
- func (it Variant) IsInvalid() bool
- func (it Variant) IsLess(n string) bool
- func (it Variant) IsLessEqual(n string) bool
- func (it Variant) IsNameEqual(name string) bool
- func (it Variant) IsStartsWith(n string) bool
- func (it Variant) IsValid() bool
- func (it Variant) IsWhitespace() bool
- func (it Variant) Join(elements ...Variant) Variant
- func (it Variant) JoinStrings(elements ...string) Variant
- func (it Variant) LastIndexOf(n string) int
- func (it Variant) Length() int
- func (it Variant) MarshalJSON() ([]byte, error)
- func (it Variant) MaxInt() int
- func (it Variant) MaxValueString() string
- func (it Variant) MinInt() int
- func (it Variant) MinMaxAny() (min, max interface{})
- func (it Variant) MinValueString() string
- func (it Variant) Name() string
- func (it Variant) NameUsingMap(nameRanges map[Variant]string) string
- func (it Variant) NameValue() string
- func (it Variant) OnlySupportedErr(names ...string) error
- func (it Variant) OnlySupportedMsgErr(message string, names ...string) error
- func (it Variant) OrEmpty(n Variant) bool
- func (it Variant) OrHasElement(n Variant) bool
- func (it Variant) Prepend(n Variant) Variant
- func (it Variant) PrependIf(isPrepend bool, n Variant) Variant
- func (it Variant) PrependString(n string) Variant
- func (it Variant) PrependStringIf(isPrepend bool, n string) Variant
- func (it Variant) QuotationWrap() string
- func (it Variant) RangeNamesCsv() string
- func (it Variant) RangesDynamicMap() map[string]interface{}
- func (it Variant) Remove(removeText string) Variant
- func (it Variant) RemoveMany(removeTexts ...string) Variant
- func (it Variant) RemoveManyBySplitting(splitsBy string, removeTexts ...string) []string
- func (it Variant) Replace(oldText, newText string) Variant
- func (it Variant) ReplaceUsingMapCurly(replacingMap map[string]string) Variant
- func (it Variant) ReplaceUsingMapDirect(replacingMap map[string]string) Variant
- func (it Variant) ReplaceUsingMapOption(isWrapKeysWithCurly bool, replacingMap map[string]string) Variant
- func (it Variant) RunesLength() (length int, allRunes []rune)
- func (it Variant) SafeSplit(midPoint int) (left, right Variant)
- func (it Variant) SafeSubString(start, end int) Variant
- func (it Variant) SafeSubStringEnd(end int) Variant
- func (it Variant) SafeSubStringStart(start int) Variant
- func (it Variant) SimpleStringOnce(isInitialized bool) corestr.SimpleStringOnce
- func (it Variant) Size() int
- func (it Variant) SplitBy(splitsBy string) []string
- func (it Variant) SplitByWhitespace() []string
- func (it Variant) SplitKeyVal(splitsBy string) (key, val string)
- func (it Variant) SplitKeyValTrim(splitsBy string) (keyTrim, valTrim string)
- func (it Variant) SplitKeyValue(splitter string) (left, right string)
- func (it Variant) SplitKeyValueAsType(splitter string) (left, right Variant)
- func (it Variant) SplitKeyValueTrim(splitter string) (left, right string)
- func (it Variant) SplitTrimmedNonEmpty(splitsBy string) []string
- func (it Variant) SquareWrap() string
- func (it Variant) String() string
- func (it Variant) StringValue() string
- func (it Variant) TitleCurly(title string) string
- func (it Variant) TitleQuotation(title string) string
- func (it Variant) TitleQuotationReferenceStrings(title string, csvItems ...string) string
- func (it Variant) TitleQuotationRefs(title string, csvItems ...interface{}) string
- func (it Variant) TitleSquare(title string) string
- func (it Variant) ToByteUsingMap(givenMap map[string]byte) (val byte, isApplicable bool)
- func (it Variant) ToByteUsingMapValidationErr(givenMap map[string]byte) (val byte, err error)
- func (it Variant) ToErr() error
- func (it Variant) ToIntUsingMapValidationErr(givenMap map[string]int) (val int, err error)
- func (it Variant) ToNumberString() string
- func (it Variant) ToPtr() *Variant
- func (it Variant) Trim() Variant
- func (it Variant) TypeName() string
- func (it *Variant) UnmarshalJSON(data []byte) error
- func (it Variant) Value() string
- func (it Variant) ValueByte() byte
- func (it Variant) ValueInt() int
- func (it Variant) ValueInt16() int16
- func (it Variant) ValueInt32() int32
- func (it Variant) ValueInt8() int8
- func (it Variant) ValueString() string
- func (it Variant) ValueUInt16() uint16
- func (it Variant) Version() *coreversion.Version
Constants ¶
View Source
const ( CurlyStringWrapFormat = "{%s}" BracketStringWrapFormat = "[%s]" TitleValueQuotationParenthesisRefWrapReferenceFormat = "%s: %q (%s)" // Title, QuotationValue, Reference string TitleBracketWrapFormat = "%s: [%s]" // Title, Value - (value bracket wrapped) TitleCurlyWrapFormat = "%s: {%s}" // Title, Value - (value curly wrapped) TitleQuotationWrapFormat = "%s: %q" // Title, Value - (value Quotation wrapped) )
Variables ¶
View Source
var ( // Arch // Current OS architecture Arch = osarchs.CurrentArch Group = ostype.CurrentGroupVariant.Group // Type Current Os Type Type = ostype.CurrentGroupVariant )
Functions ¶
This section is empty.
Types ¶
type FileReader ¶ added in v0.1.3
type FileReader interface { FilePath() string OpenFile() (*os.File, error) OpenFileLock() (*os.File, error) Type() (Variant, error) TypeLock() (Variant, error) TrimText() (string, error) TrimTextLock() (string, error) TrimLine() (string, error) TrimLineLock() (string, error) Line() (string, error) LineLock() (string, error) Text() (string, error) TextLock() (string, error) String() (string, error) StringLock() (string, error) Strings() ([]string, error) StringsLock() ([]string, error) SimpleSlice() (*corestr.SimpleSlice, error) SimpleSliceLock() (*corestr.SimpleSlice, error) Lines() ([]string, error) LinesLock() ([]string, error) NonEmptyLines() ([]string, error) NonEmptyLinesLock() ([]string, error) TrimNonEmptyLines() ([]string, error) TrimNonEmptyLinesLock() ([]string, error) TrimNonWhitespaceLines() ([]string, error) TrimNonWhitespaceLinesLock() ([]string, error) Bytes() ([]byte, error) BytesLock() ([]byte, error) Raw() ([]byte, error) RawLock() ([]byte, error) JsonResult() (*corejson.Result, error) JsonResultLock() (*corejson.Result, error) RawAsJsonResult() *corejson.Result RawAsJsonResultLock() *corejson.Result }
func NewFileReader ¶ added in v0.1.3
func NewFileReader(filePath string) FileReader
type Variant ¶
type Variant string
func GetSetVariant ¶
func NewUsingEnum ¶ added in v0.1.3
func NewUsingEnum(valueEnum enuminf.BasicEnumer) Variant
func NewUsingInteger ¶ added in v0.1.3
func NewUsingJsonResult ¶ added in v0.1.3
func NewUsingJsoner ¶ added in v0.1.3
func NewUsingStringer ¶ added in v0.1.3
func (Variant) AddAnother ¶ added in v0.0.4
func (Variant) AddPrefixOnMissing ¶ added in v0.2.7
func (Variant) AddSuffixOnMissing ¶ added in v0.2.7
func (Variant) AllNameValues ¶ added in v0.0.4
func (Variant) AndHasElement ¶ added in v0.1.3
func (Variant) AndIsEmpty ¶ added in v0.1.3
func (Variant) AppendStringIf ¶ added in v0.1.3
func (Variant) AsBasicEnumer ¶ added in v0.0.4
func (it Variant) AsBasicEnumer() enuminf.BasicEnumer
func (Variant) ConvInteger ¶ added in v0.1.3
func (Variant) FileReader ¶ added in v0.1.3
func (it Variant) FileReader() FileReader
func (Variant) HasAnyItem ¶ added in v0.1.3
func (Variant) HasInAliasMap ¶ added in v0.1.3
func (Variant) IntegerDefaultVal ¶ added in v0.1.3
func (Variant) IntegerEnumRanges ¶ added in v0.0.4
func (Variant) IsAnyNamesOf ¶ added in v0.0.4
func (Variant) IsCompareResult ¶
func (it Variant) IsCompareResult(n string, compare corecomparator.Compare) bool
IsCompareResult Here left is v, and right is `n`
func (Variant) IsContains ¶ added in v0.1.3
func (Variant) IsEndsWith ¶ added in v0.1.3
func (Variant) IsEqualAnother ¶ added in v0.0.4
func (Variant) IsEqualTrim ¶ added in v0.0.4
func (Variant) IsGreaterEqual ¶
IsGreaterEqual v.Value() >= n
func (Variant) IsLessEqual ¶
IsLessEqual v.Value() <= n
func (Variant) IsNameEqual ¶ added in v0.0.4
func (Variant) IsStartsWith ¶ added in v0.1.3
func (Variant) IsWhitespace ¶ added in v0.0.4
func (Variant) JoinStrings ¶ added in v0.1.3
func (Variant) LastIndexOf ¶ added in v0.1.3
func (Variant) MarshalJSON ¶ added in v0.0.4
func (Variant) MaxValueString ¶ added in v0.0.4
func (Variant) MinValueString ¶ added in v0.0.4
func (Variant) NameUsingMap ¶ added in v0.0.4
func (Variant) OnlySupportedErr ¶ added in v0.0.4
func (Variant) OnlySupportedMsgErr ¶ added in v0.0.4
func (Variant) OrHasElement ¶ added in v0.1.3
func (Variant) PrependString ¶ added in v0.1.3
func (Variant) PrependStringIf ¶ added in v0.1.3
func (Variant) QuotationWrap ¶ added in v0.0.4
func (Variant) RangeNamesCsv ¶ added in v0.0.4
func (Variant) RangesDynamicMap ¶ added in v0.0.4
func (Variant) RemoveMany ¶ added in v0.0.5
func (Variant) RemoveManyBySplitting ¶ added in v0.0.5
func (Variant) ReplaceUsingMapCurly ¶ added in v0.0.4
func (Variant) ReplaceUsingMapDirect ¶ added in v0.0.4
func (Variant) ReplaceUsingMapOption ¶ added in v0.0.4
func (Variant) RunesLength ¶ added in v0.0.4
func (Variant) SafeSubString ¶ added in v0.0.4
func (Variant) SafeSubStringEnd ¶ added in v0.0.4
func (Variant) SafeSubStringStart ¶ added in v0.0.4
func (Variant) SimpleStringOnce ¶ added in v0.0.4
func (it Variant) SimpleStringOnce( isInitialized bool, ) corestr.SimpleStringOnce
func (Variant) SplitByWhitespace ¶ added in v0.0.5
func (Variant) SplitKeyVal ¶ added in v0.2.7
func (Variant) SplitKeyValTrim ¶ added in v0.2.7
func (Variant) SplitKeyValue ¶ added in v0.2.8
func (Variant) SplitKeyValueAsType ¶ added in v0.2.8
func (Variant) SplitKeyValueTrim ¶ added in v0.2.8
func (Variant) SplitTrimmedNonEmpty ¶ added in v0.0.5
func (Variant) SquareWrap ¶ added in v0.0.4
func (Variant) StringValue ¶
func (Variant) TitleCurly ¶ added in v0.0.4
func (Variant) TitleQuotation ¶ added in v0.0.4
func (Variant) TitleQuotationReferenceStrings ¶ added in v0.0.4
func (Variant) TitleQuotationRefs ¶ added in v0.0.4
func (Variant) TitleSquare ¶ added in v0.0.4
func (Variant) ToByteUsingMap ¶ added in v0.2.7
func (Variant) ToByteUsingMapValidationErr ¶ added in v0.2.7
func (Variant) ToIntUsingMapValidationErr ¶ added in v0.2.7
func (Variant) ToNumberString ¶ added in v0.0.4
func (*Variant) UnmarshalJSON ¶ added in v0.0.4
func (Variant) ValueInt16 ¶ added in v0.0.4
func (Variant) ValueInt32 ¶ added in v0.0.4
func (Variant) ValueString ¶ added in v0.0.4
func (Variant) ValueUInt16 ¶ added in v0.0.4
func (Variant) Version ¶ added in v0.1.3
func (it Variant) Version() *coreversion.Version
Click to show internal directories.
Click to hide internal directories.