wip: refactory

This commit is contained in:
loveuer committed 2025-02-05 18:07:53 +08:00
1 parent b7b9c14e79
commit 41d2c94145
25 files changed
+696 -1583

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/jedib0t/go-pretty/v6/table"
"github.com/loveuer/nf/nft/log"
"github.com/loveuer/esgo2dump/pkg/log"
)
func TablePrinter(data any, writers ...io.Writer) {
+15
View File
@@ -0,0 +1,15 @@
package tool
import (
"fmt"
"strings"
)
func ValidScheme(scheme string) error {
switch strings.ToLower(scheme) {
case "http", "https":
return nil
default:
return fmt.Errorf("invalid scheme: %s", scheme)
}
}