1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-23 01:24:30 +02:00
ferret/pkg/stdlib/io/fs/lib.go
2019-10-21 18:26:49 +03:00

17 lines
321 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,
"WRITE": Write,
}))
}