buildin

package
v0.77.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const OwnerURL = "ownerURL"

Variables

This section is empty.

Functions

func AssetsToMap

func AssetsToMap(source interface{}, state data.Map) (interface{}, error)

AssetsToMap loads assets into map[string]string, it takes url, with optional list of extension as filter

func BinaryAssetsToMap

func BinaryAssetsToMap(source interface{}, state data.Map) (interface{}, error)

BinaryAssetsToMap loads binary assets into map[string]string, it takes url, with optional list of extension as filter

func Cat

func Cat(source interface{}, state data.Map) (interface{}, error)

Cat returns content of supplied file name

func CurrentHour

func CurrentHour(none interface{}, state data.Map) (interface{}, error)

No parameters Returns the numeric current hour [0,23]

func GetOwnerDirectory

func GetOwnerDirectory(state data.Map) (string, error)

GetOwnerDirectory returns owner neatly document directory

func HasResource

func HasResource(source interface{}, state data.Map) (interface{}, error)

HasResource check if patg/url to external resource exists

func IsJSON

func IsJSON(fileName interface{}, state data.Map) (interface{}, error)

Validate if JSON file is a well-formed JSON Returns true if file content is valid JSON

func LoadBinary

func LoadBinary(source interface{}, state data.Map) (interface{}, error)

LoadBinary returns []byte content of supplied file name

func Markdown

func Markdown(source interface{}, state data.Map) (interface{}, error)

Markdown returns html fot supplied markdown

func MatchAnyRow

func MatchAnyRow(valueAndPath interface{}, state data.Map) (interface{}, error)

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 Md5

func Md5(source interface{}, state data.Map) (interface{}, error)

Md5 computes source md5

func Unzip

func Unzip(source interface{}, state data.Map) (interface{}, error)

Unzip uncompress supplied []byte or error

func UnzipText

func UnzipText(source interface{}, state data.Map) (interface{}, error)

UnzipText uncompress supplied []byte into text or error

func WorkingDirectory

func WorkingDirectory(source interface{}, state data.Map) (interface{}, error)

WorkingDirectory return joined path with current directory, ../ is supported as subpath

func Zip

func Zip(source interface{}, state data.Map) (interface{}, error)

Zip compresses supplied []byte or test or error

Types

This section is empty.

Jump to

Keyboard shortcuts

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