Documentation ¶
Index ¶
- Constants
- func AssetsToMap(source interface{}, state data.Map) (interface{}, error)
- func BinaryAssetsToMap(source interface{}, state data.Map) (interface{}, error)
- func Cat(source interface{}, state data.Map) (interface{}, error)
- func CurrentHour(none interface{}, state data.Map) (interface{}, error)
- func GetOwnerDirectory(state data.Map) (string, error)
- func HasResource(source interface{}, state data.Map) (interface{}, error)
- func IsJSON(fileName interface{}, state data.Map) (interface{}, error)
- func LoadBinary(source interface{}, state data.Map) (interface{}, error)
- func Markdown(source interface{}, state data.Map) (interface{}, error)
- func MatchAnyRow(valueAndPath interface{}, state data.Map) (interface{}, error)
- func Md5(source interface{}, state data.Map) (interface{}, error)
- func Unzip(source interface{}, state data.Map) (interface{}, error)
- func UnzipText(source interface{}, state data.Map) (interface{}, error)
- func WorkingDirectory(source interface{}, state data.Map) (interface{}, error)
- func Zip(source interface{}, state data.Map) (interface{}, error)
Constants ¶
const OwnerURL = "ownerURL"
Variables ¶
This section is empty.
Functions ¶
func AssetsToMap ¶
AssetsToMap loads assets into map[string]string, it takes url, with optional list of extension as filter
func BinaryAssetsToMap ¶
BinaryAssetsToMap loads binary assets into map[string]string, it takes url, with optional list of extension as filter
func CurrentHour ¶
No parameters Returns the numeric current hour [0,23]
func GetOwnerDirectory ¶
GetOwnerDirectory returns owner neatly document directory
func HasResource ¶
HasResource check if patg/url to external resource exists
func IsJSON ¶
Validate if JSON file is a well-formed JSON Returns true if file content is valid JSON
func LoadBinary ¶
LoadBinary returns []byte content of supplied file name
func MatchAnyRow ¶
valueAndPath expects a map with keys "path" being the path to the file which contains the rows to match and "value" containing the value to match Return value is a boolean. True if the compare value matches any row in the file. False if there is an error or no match is found
func WorkingDirectory ¶
WorkingDirectory return joined path with current directory, ../ is supported as subpath
Types ¶
This section is empty.