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

19 lines
347 B
Go
Raw Normal View History

2019-10-19 20:17:34 +02:00
package io
import (
"github.com/MontFerret/ferret/pkg/runtime/core"
"github.com/MontFerret/ferret/pkg/stdlib/io/fs"
)
// RegisterLib register `IO` namespace functions.
func RegisterLib(ns core.Namespace) error {
io := ns.Namespace("IO")
err := fs.RegisterLib(io)
if err != nil {
return core.Error(err, "register `FS`")
}
return nil
}