Data

Index

All Data functions

Name Function header Example Result Description Errorhandling
xaddValue func(data Data, name string, value string) Data [[ $v := addValue $data "key" "value" ]] $v contains the $data object with the “value” added to the attribute “key”
xaddValues func(data Data, name string, values []string) Data [[ $v := addValues $data "key" $values ]] $v contains the $data object with the array $values added to the attribute “key”
xclearValue func(data Data, name string) Data [[ $v := clearValue $data "key" ]] $v contains the $data object with the attribute “key” removed
clearValues func(data Data, name string) Data [[ $v := clearValue $data "key" ]] $v contains the $data object with the attribute “key” removed
??not in Cheatsheets Data-Bloc?? diffData func(????) string [[ $result := hasKeys "??" ]] $result = “??”
xgetKeys func getKeys(data Data) []string [[ $v := getKeys $data ]] $v contains all the keys exists in the $data object
xgetValue func(data Data, name string) string [[ $v := getValue $data "key" ]] $v contains the value of the attribute “key” from $data
xgetValues func(data Data, name string) []string [[ $v := getValues $data "key" ]] $v contains the values array of the attribute “key” from $data
xhasKey func(????) string [[ $result := hasKeys "??" ]] $result = “??”
xhasKeys func(????) string [[ $result := hasKeys "??" ]] $result = “??”
xhasValue func(????) string [[ $result := hasKeys "??" ]] $result = “??”
xhasValues func(????) string [[ $result := hasKeys "??" ]] $result = “??”
??not in Cheatsheets Data-Bloc?? moreData func(????) string [[ $result := hasKeys "??" ]] $result = “??”
??not in Cheatsheets Data-Bloc?? newData func() Data [[ $v := newData ]] $v contains a new Data object
xremoveValue func(data Data, name string, value string) Data [[ $v := setValue $data "key" "value" ]] $v contains the $data object with the attribute “key” set to “value” (replace)
xremoveValues func(data Data, name string, values []string) Data [[ $v := setValues $data "key" $values ]] $v contains the $data object with the attribute “key” set to $values (replace)
xsetValue func(data Data, name string, value string) Data [[ $v := setValue $data "key" "value" ]] $v contains the $data object with the attribute “key” set to “value” (replace)
xsetValues func(data Data, name string, values []string) Data [[ $v := setValues $data "key" $values ]] $v contains the $data object with the attribute “key” set to $values (replace)

addValue

// TODO

func(data Data, name string, value string) Data

The addValue function …

Examples

TODO: Anpassen Beispiele

[[ $resulat := addValue "?????" ]]
$result = ""

[[ $result := addValue "this is a very long test string" 2 ]]
$result = "this is a very long test string"
string"

addValues

// TODO

func(data Data, name string, values []string) Data

The addValues function …

Example with addValues

[[ $v := addValues ... ]]

$v contains …

clearValue

// TODO

func(data Data, name string) Data

The clearValue function …

Example with clearValue

[[ $v := clearValue ... ]]

$v contains …

diffData

// TODO

func(data Data, name string, value string) Data

The addValue function …

Examples

TODO: Anpassen Beispiele

[[ $resulat := addValue "?????" ]]
$result = ""

[[ $result := addValue "this is a very long test string" 2 ]]
$result = "this is a very long test string"
string"

getKeys

// TODO

func getKeys(data Data) []string

The getKeys function …

Example with getKeys

[[ $v := getKeys ... ]]

$v contains …

getValue

// TODO

func(data Data, name string) string

The getValue function …

Example with getValue

[[ $v := getValue ... ]]

$v contains …

getValues

// TODO

func(data Data, name string) []string

The getValues function …

Example with getValues

[[ $v := getValues ... ]]

$v contains …

hasKeys

// TODO

func(data Data, name string, value string) Data

The addValue function …

Examples

TODO: Anpassen Beispiele

[[ $resulat := addValue "?????" ]]
$result = ""

[[ $result := addValue "this is a very long test string" 2 ]]
$result = "this is a very long test string"
string"

hasValue

// TODO

func(data Data, name string, value string) Data

The addValue function …

Examples

TODO: Anpassen Beispiele

[[ $resulat := addValue "?????" ]]
$result = ""

[[ $result := addValue "this is a very long test string" 2 ]]
$result = "this is a very long test string"
string"

hasValues

// TODO

func(data Data, name string, value string) Data

The addValue function …

Examples

TODO: Anpassen Beispiele

[[ $resulat := addValue "?????" ]]
$result = ""

[[ $result := addValue "this is a very long test string" 2 ]]
$result = "this is a very long test string"
string"

moreData

// TODO

func(data Data, name string, value string) Data

The addValue function …

Examples

TODO: Anpassen Beispiele

[[ $resulat := addValue "?????" ]]
$result = ""

[[ $result := addValue "this is a very long test string" 2 ]]
$result = "this is a very long test string"
string"

newData

// TODO

func() Data

The newData function …

Example with newData

[[ $v := newData ... ]]

$v contains …

setValue

// TODO

func(data Data, name string, value string) Data

The setValue function …

Example with setValue

[[ $v := setValue ... ]]

$v contains …

setValues

// TODO

func(data Data, name string, values []string) Data

The setValues function …

Example with setValues

[[ $v := setValues ... ]]

$v contains …