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:
18
pkg/stdlib/io/lib.go
Normal file
18
pkg/stdlib/io/lib.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user