1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-07 00:56:53 +02:00
Files
ferret/pkg/stdlib/io/fs/lib.go

16 lines
300 B
Go
Raw Normal View History

2019-10-19 21:17:34 +03:00
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,
}))
}