1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/pkg/stdlib/io/fs/lib.go

17 lines
321 B
Go
Raw Normal View History

2019-10-19 20:17:34 +02: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{
2019-10-21 17:26:49 +02:00
"READ": Read,
"WRITE": Write,
2019-10-19 20:17:34 +02:00
}))
}