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) |
// 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"
// TODO
func(data Data, name string, values []string) Data
The addValues
function …
Example with addValues
[[ $v := addValues ... ]]
$v
contains …
// TODO
func(data Data, name string) Data
The clearValue
function …
Example with clearValue
[[ $v := clearValue ... ]]
$v
contains …
// 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"
// TODO
func getKeys(data Data) []string
The getKeys
function …
Example with getKeys
[[ $v := getKeys ... ]]
$v
contains …
// TODO
func(data Data, name string) string
The getValue
function …
Example with getValue
[[ $v := getValue ... ]]
$v
contains …
// TODO
func(data Data, name string) []string
The getValues
function …
Example with getValues
[[ $v := getValues ... ]]
$v
contains …
// 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"
// 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"
// 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"
// 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"
// TODO
func() Data
The newData
function …
Example with newData
[[ $v := newData ... ]]
$v
contains …
// TODO
func(data Data, name string, value string) Data
The setValue
function …
Example with setValue
[[ $v := setValue ... ]]
$v
contains …
// TODO
func(data Data, name string, values []string) Data
The setValues
function …
Example with setValues
[[ $v := setValues ... ]]
$v
contains …