github.com/MontFerret/ferret@v0.18.0/pkg/stdlib/io/net/lib.go (about) 1 package net 2 3 import ( 4 "github.com/MontFerret/ferret/pkg/runtime/core" 5 "github.com/MontFerret/ferret/pkg/stdlib/io/net/http" 6 ) 7 8 // RegisterLib register `NET` namespace functions. 9 // @namespace NET 10 func RegisterLib(ns core.Namespace) error { 11 io := ns.Namespace("NET") 12 13 if err := http.RegisterLib(io); err != nil { 14 return core.Error(err, "register `HTTP`") 15 } 16 17 return nil 18 }