github.com/MontFerret/ferret@v0.18.0/pkg/stdlib/io/fs/lib.go (about) 1 package fs 2 3 import ( 4 "github.com/MontFerret/ferret/pkg/runtime/core" 5 ) 6 7 // RegisterLib register `FS` namespace functions. 8 // @namespace FS 9 func RegisterLib(ns core.Namespace) error { 10 return ns. 11 Namespace("FS"). 12 RegisterFunctions( 13 core.NewFunctionsFromMap(map[string]core.Function{ 14 "READ": Read, 15 "WRITE": Write, 16 })) 17 }