mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-18 23:47:48 +02:00
16 lines
300 B
Go
16 lines
300 B
Go
|
package fs
|
||
|
|
||
|
import (
|
||
|
"github.com/MontFerret/ferret/pkg/runtime/core"
|
||
|
)
|
||
|
|
||
|
// RegisterLib register `FS` namespace functions.
|
||
|
func RegisterLib(ns core.Namespace) error {
|
||
|
return ns.
|
||
|
Namespace("FS").
|
||
|
RegisterFunctions(
|
||
|
core.NewFunctionsFromMap(map[string]core.Function{
|
||
|
"READ": Read,
|
||
|
}))
|
||
|
}
|