From 5a5d18ca0e61c0cb02b6eec874f16b3b970695a2 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Wed, 16 Jul 2025 13:25:18 -0500 Subject: [PATCH] Move http module go code to its own package --- functions/{ => http}/http.go | 2 +- functions/registry.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) rename functions/{ => http}/http.go (99%) diff --git a/functions/http.go b/functions/http/http.go similarity index 99% rename from functions/http.go rename to functions/http/http.go index 6106cb4..d1efd22 100644 --- a/functions/http.go +++ b/functions/http/http.go @@ -1,4 +1,4 @@ -package functions +package http import ( "fmt" diff --git a/functions/registry.go b/functions/registry.go index 0c0535f..6613d58 100644 --- a/functions/registry.go +++ b/functions/registry.go @@ -3,6 +3,8 @@ package functions import ( "maps" + "Moonshark/functions/http" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" ) @@ -18,7 +20,7 @@ func GetAll() Registry { maps.Copy(registry, GetMathFunctions()) maps.Copy(registry, GetFSFunctions()) maps.Copy(registry, GetCryptoFunctions()) - maps.Copy(registry, GetHTTPFunctions()) + maps.Copy(registry, http.GetHTTPFunctions()) return registry }