data

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ALeapYear = 2000
View Source
const ArrCaseIndexOfB = -1
View Source
const ArrCaseIndexOfb = 1
View Source
const ArrFloatContains15Pt5 = false
View Source
const ArrFloatContains5Pt5 = true
View Source
const ArrIndexOfa = 0 // index of "a" = 0
View Source
const ArrIndexOft = -1 // index of "t"
View Source
const ArrIntContains10 = true
View Source
const ArrIntContains44 = false
View Source
const ArrStringCaseContainsabi = false
View Source
const ArrStringContainsAbi = true
View Source
const CamelCaseValue = "countryCode"
View Source
const DotSepParam = "country.code"
View Source
const FactorialParam = 4
View Source
const FactorialValue = 24
View Source
const FibSeriesParam = 8
View Source
const Firstname = "Abi"
View Source
const FullnameThree = "Abi John Owo"
View Source
const FullnameTwo = "Abi Owo"
View Source
const GeoMeanPrecision2Result = 4.53 // precision 5
View Source
const GeoMeanPrecision5Result = 4.52872 // precision 5
View Source
const Interval = 1
View Source
const Lastname = "Owo"
View Source
const MaxResult = 10
View Source
const MeanResult = 5.5
View Source
const MedianResult = 5.5
View Source
const Middlename = "John"
View Source
const MinResult = 1
View Source
const NotLeapYear = 2022
View Source
const ParamObjectMsgResult = `name: required | location: optional`
View Source
const PascalCaseValue = "CountryCode"
View Source
const PipeSepParam = "country|code"
View Source
const PrimeNumParam = 10
View Source
const PythagorasParam = 10
View Source
const PythagorasParam100 = 100
View Source
const Short20StringResult = "This is a great titl..."
View Source
const Short21StringResult = "This is a great title..."
View Source
const ShortStringParam = "This is a great title for testing"
View Source
const SpaceSepParam = "country code"
View Source
const StdDeviationResult = 3.0276503540974917 // 16 decimal places
View Source
const StdDeviationResultEst = 3.02765
View Source
const StdDeviationResultEst2 = 2.74
View Source
const Str0ToBool = 0
View Source
const Str1ToBool = 1
View Source
const StrEmptyToBool = ""
View Source
const StrFalseToBool = "false"
View Source
const StrNToBool = "N"
View Source
const StrNoToBool = "no"
View Source
const StrTrueToBool = "true"
View Source
const StrYToBool = "Y"
View Source
const StrYesToBool = "yes"
View Source
const UnderscoreValue = "country_code"
View Source
const VariancePrecision2Result = 9.17 // precision of 2
View Source
const VariancePrecision5Result = 9.16667 // precision of 2

Variables

View Source
var ArrFloat = []float64{10.00, 9.50, 4.5, 4.2, 2.5, 1.5}
View Source
var ArrInt = []int{10, 9, 4, 2, 5, 1}
View Source
var ArrInt64 = []int64{100, 90, 45, 28, 49, 19}
View Source
var ArrString = []string{"a", "b", "k", "m", "z", "q"}
View Source
var ArrString2 = []string{"Abi", "boy", "king", "Mango", "zOo", "Quote"}
View Source
var ArrayOfNumber = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
View Source
var ArrayOfNumber2 = []float64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}
View Source
var ArrayOfNumberFreq = []int{1, 2, 2, 2, 1, 4, 4, 3, 5, 10}
View Source
var ArrayOfString = []string{"abc", "ab2", "abc3", "ab4", "abc5", "ab6", "abc7", "ab8", "abc9", "ab10"}
View Source
var BooleanParams = []bool{true, false, true, true, true, false, true, true}
View Source
var ConstantObject = mcutils.Locale{
	"SHORT_DESC":   20,
	"DEFAULT_LANG": "en-US",
}
View Source
var CountNumResult = mcutils.CounterResult[int]{
	"2": mcutils.CounterValue[int]{
		Count: 2,
		Value: 2,
	},
	"3": mcutils.CounterValue[int]{
		Count: 3,
		Value: 3,
	},
	"5": mcutils.CounterValue[int]{
		Count: 4,
		Value: 5,
	},
}
View Source
var CountStringResult = mcutils.CounterResult[string]{
	"a": mcutils.CounterValue[string]{
		Count: 5,
		Value: "a",
	},
	"b": mcutils.CounterValue[string]{
		Count: 1,
		Value: "b",
	},
}
View Source
var EmptyObjectValue = map[string]interface{}{}
View Source
var FibSeriesResult = []int{1, 1, 2, 3, 5, 8, 13, 21}
View Source
var FilterEvenNumFuncResult = []int{2, 4, 6, 8, 10}
View Source
var FilterFloatGreaterThan5Result = []float64{10.00, 9.50}
View Source
var FilterIntGreaterThan2Result = []int{10, 9, 4, 5}
View Source
var FilterOddNumFuncResult = []int{1, 3, 5, 7, 9}
View Source
var FilterStringIncludeABCResult = []string{"abc", "abc3", "abc5", "abc7", "abc9"}
View Source
var FilterStringIncludeAResult = []string{"Abi", "boy"}
View Source
var LabelObject = mcutils.Locale{
	"code":       "Code",
	"name":       "Name",
	"desc":       "Description",
	"postalCode": "Postal Code",
}
View Source
var LocaleConstantFiles = mcutils.LocaleFilesType{
	"en-US": ConstantObject,
	"en-CA": ConstantObject,
}
View Source
var LocaleConstantOptions = mcutils.LocaleOptions{
	LocaleType: "mcConstants",
	Language:   "en-CA",
}
View Source
var LocaleLabelFiles = mcutils.LocaleFilesType{
	"en-US": LabelObject,
	"en-CA": LabelObject,
}
View Source
var LocaleLabelOptions = mcutils.LocaleOptions{
	LocaleType: "mcLabels",
	Language:   "en-CA",
}
View Source
var MapDoubleFloatResult = []float64{20.00, 19.00, 9.00, 8.4, 5.00, 3.00}
View Source
var MapDoubleIntResult = []int{20, 18, 8, 4, 10, 2}
View Source
var MapDoubleNumFuncResult = []int{2, 4, 6, 8, 10, 12, 14, 16, 18, 20}
View Source
var MapStringAppendAResult = []string{"AbiA", "boyA", "kingA", "MangoA", "zOoA", "QuoteA"}
View Source
var MinMaxResult = []float64{1, 10}
View Source
var NonEmptyObjectValue = map[string]interface{}{"name": "Abi", "location": "Toronto"}
View Source
var NumParams = []int{2, 5, 3, 5, 3, 5, 2, 3, 5}
View Source
var ParamObjectMsgData = map[string]string{"name": "required", "location": "optional"}
View Source
var PrimeNums = []int{2, 3, 5, 7}
View Source
var PythagorasResult = [][]int{{3, 4, 5}, {6, 8, 10}}
View Source
var PythagorasResult100 = [][]int{
	{3, 4, 5}, {5, 12, 13}, {6, 8, 10},
	{7, 24, 25}, {8, 15, 17}, {9, 12, 15},
	{9, 40, 41}, {10, 24, 26}, {11, 60, 61},
	{12, 16, 20}, {12, 35, 37}, {13, 84, 85},
	{14, 48, 50}, {15, 20, 25}, {15, 36, 39},
	{16, 30, 34}, {16, 63, 65}, {18, 24, 30},
	{18, 80, 82}, {20, 21, 29}, {20, 48, 52},
	{20, 99, 101}, {21, 28, 35}, {21, 72, 75},
	{24, 32, 40}, {24, 45, 51}, {24, 70, 74},
	{25, 60, 65}, {27, 36, 45}, {28, 45, 53},
	{28, 96, 100}, {30, 40, 50}, {30, 72, 78},
	{32, 60, 68}, {33, 44, 55}, {33, 56, 65},
	{35, 84, 91}, {36, 48, 60}, {36, 77, 85},
	{39, 52, 65}, {39, 80, 89}, {40, 42, 58},
	{40, 75, 85}, {40, 96, 104}, {42, 56, 70},
	{45, 60, 75}, {48, 55, 73}, {48, 64, 80},
	{48, 90, 102}, {51, 68, 85}, {54, 72, 90},
	{56, 90, 106}, {57, 76, 95}, {60, 63, 87},
	{60, 80, 100}, {60, 91, 109}, {63, 84, 105},
	{65, 72, 97}, {66, 88, 110}, {69, 92, 115},
	{72, 96, 120}, {75, 100, 125}, {80, 84, 116},
}
View Source
var ReverseFloatResult = []float64{1.5, 2.5, 4.2, 4.5, 9.50, 10.00}
View Source
var ReverseIntResult = []int{1, 5, 2, 4, 9, 10}
View Source
var ReverseStringResult = []string{"Quote", "zOo", "Mango", "king", "boy", "Abi"}
View Source
var SetBooleanResult = []bool{true, false}
View Source
var SetNumResult = []int{2, 5, 3}
View Source
var SetStingResult = []string{"a", "b"}
View Source
var StringParams = []string{"a", "b", "a", "a", "a", "a"}
View Source
var Take2IntResult = []int{10, 9}
View Source
var Take2StringResult = []string{"Abi", "boy"}
View Source
var Take7NumResult = []int{1, 2, 3, 4, 5, 6, 7}
View Source
var Take7StringResult = []string{"abc", "ab2", "abc3", "ab4", "abc5", "ab6", "abc7"}

Functions

func AllFloatFunc

func AllFloatFunc(val float64) bool

func AllIntFunc

func AllIntFunc(val int) bool

func AnyFloatFunc

func AnyFloatFunc(val float64) bool

func AnyIntFunc

func AnyIntFunc(val int) bool

func CountNumResultKeys

func CountNumResultKeys() []string

func CountStringResultKeys

func CountStringResultKeys() []string

func FilterEvenNumFunc

func FilterEvenNumFunc[T mcutils.Number](val T) bool

func FilterFloatGreaterThan5

func FilterFloatGreaterThan5(val float64) bool

func FilterIntGreaterThan2

func FilterIntGreaterThan2(val int) bool

func FilterOddNumFunc

func FilterOddNumFunc[T mcutils.Number](val T) bool

func FilterStringIncludeA

func FilterStringIncludeA(val string) bool

func FilterStringIncludeABC

func FilterStringIncludeABC(val string) bool

func MapDoubleFloatValue

func MapDoubleFloatValue(val float64) float64

func MapDoubleIntValue

func MapDoubleIntValue(val int) int

func MapDoubleNumFunc

func MapDoubleNumFunc[T mcutils.Number](val T) T

func MapStringAppendA

func MapStringAppendA(val string) string

func NotAllFloatFunc

func NotAllFloatFunc(val float64) bool

func NotAllIntFunc

func NotAllIntFunc(val int) bool

func NotAnyFloatFunc

func NotAnyFloatFunc(val float64) bool

func NotAnyIntFunc

func NotAnyIntFunc(val int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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