All Filesystem functions
Name | Function header | Example | Result | Description | Errorhandling |
---|---|---|---|---|---|
saveFile | func(name string, content Data) error | [[ $v := saveFile "myfile" $content ]] |
$v contains an Error if the Data in the file could not be saved | ||
loadFile | func(name string) content Data | [[ $v := loadFile "myfile" ]] |
$v contains a Data Object created from the Filecontent | ||
saveRawFile | func(name string, content interface{}) error | [[ $v := saveRawFile "myfile" $content ]] |
$v contains an Error if the file could not be saved | ||
loadRawFile | func(name string) interface{} | [[ $v := loadRawFile "myfile" ]] |
$v contains an byte array loaded from the Filecontent | ||
saveListFile | func(name string, content []Data) error | [[ $v := saveListFile "myfile" $list]] |
$v contains an Error if the List Object could not be saved to the file | ||
loadListFile | func(name string) (content []Data) | [[ $v := loadListFile "myfile" ]] |
$v contains a List of Data Objects loaded from the File | ||
saveRequest | func(name string, content IngridMsg) error | [[ $v := saveRequest "myfile" $request ]] |
$v contains an Error if the Request Object could not be saved into the file | ||
loadRequest | func(name string) (content IngridMsg) | [[ $v := loadRequest "myfile" ]] |
$v contains a Request Object loaded from the File |
// TODO
func(name string) content Data
The loadFile
function …
Example with loadFile
[[ $v := loadFile ... ]]
$v
contains …
// TODO
func(name string) (content []Data)
The loadListFile
function …
Example with loadListFile
[[ $v := loadListFile ... ]]
$v
contains …
// TODO
func(name string) interface{}
The loadRawFile
function …
Example with loadRawFile
[[ $v := loadRawFile ... ]]
$v
contains …
// TODO
func(name string) (content IngridMsg)
The loadRequest
function …
Example with loadRequest
[[ $v := loadRequest ... ]]
$v
contains …
// TODO
func(name string, content Data) error
The saveFile
function …
Example with saveFile
[[ $v := saveFile ... ]]
$v
contains …
// TODO
func(name string, content []Data) error
The saveListFile
function …
Example with saveListFile
[[ $v := saveListFile ... ]]
$v
contains …
// TODO
func(name string, content interface{}) error
The saveRawFile
function …
Example with saveRawFile
[[ $v := saveRawFile ... ]]
$v
contains …
// TODO
func(name string, content IngridMsg) error
The saveRequest
function …
Example with saveRequest
[[ $v := saveRequest ... ]]
$v
contains …