1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-03 00:46:51 +02:00

add IO::FS::READ function

This commit is contained in:
3timeslazy
2019-10-19 21:17:34 +03:00
parent 3aab1b47fc
commit e6757b1f01
6 changed files with 156 additions and 2 deletions

18
pkg/stdlib/io/lib.go Normal file
View File

@ -0,0 +1,18 @@
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
}