mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-31 22:22:16 +02:00
18 lines
360 B
Go
18 lines
360 B
Go
|
package net
|
||
|
|
||
|
import (
|
||
|
"github.com/MontFerret/ferret/pkg/runtime/core"
|
||
|
"github.com/MontFerret/ferret/pkg/stdlib/io/net/http"
|
||
|
)
|
||
|
|
||
|
// RegisterLib register `NET` namespace functions.
|
||
|
func RegisterLib(ns core.Namespace) error {
|
||
|
io := ns.Namespace("NET")
|
||
|
|
||
|
if err := http.RegisterLib(io); err != nil {
|
||
|
return core.Error(err, "register `HTTP`")
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|