fix CI and rework package structure (#111)

This commit is contained in:
Pat Whittingslow
2026-05-13 15:44:30 -03:00
committed by GitHub
parent a2970b923d
commit b95eb03aa5
17 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -78,11 +78,11 @@ func (n Name) EqualString(strname string) bool {
} }
label := data[1 : 1+labelLen] label := data[1 : 1+labelLen]
var seg string var seg string
idx := strings.IndexByte(strname, '.') before, after, ok := strings.Cut(strname, ".")
if idx < 0 { if !ok {
seg, strname = strname, "" seg, strname = strname, ""
} else { } else {
seg, strname = strname[:idx], strname[idx+1:] seg, strname = before, after
} }
if len(seg) != len(label) || seg != string(label) { if len(seg) != len(label) || seg != string(label) {
return false return false
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/soypat/lneto" "github.com/soypat/lneto"
"github.com/soypat/lneto/arp" "github.com/soypat/lneto/arp"
"github.com/soypat/lneto/dhcpv4" "github.com/soypat/lneto/dhcp/dhcpv4"
"github.com/soypat/lneto/ethernet" "github.com/soypat/lneto/ethernet"
"github.com/soypat/lneto/internal" "github.com/soypat/lneto/internal"
"github.com/soypat/lneto/internal/ltesto" "github.com/soypat/lneto/internal/ltesto"
+2 -2
View File
@@ -11,15 +11,15 @@ import (
"github.com/soypat/lneto" "github.com/soypat/lneto"
"github.com/soypat/lneto/arp" "github.com/soypat/lneto/arp"
"github.com/soypat/lneto/dhcpv4" "github.com/soypat/lneto/dhcp/dhcpv4"
"github.com/soypat/lneto/dns" "github.com/soypat/lneto/dns"
"github.com/soypat/lneto/dns/mdns"
"github.com/soypat/lneto/ethernet" "github.com/soypat/lneto/ethernet"
"github.com/soypat/lneto/http/httpraw" "github.com/soypat/lneto/http/httpraw"
"github.com/soypat/lneto/internal" "github.com/soypat/lneto/internal"
"github.com/soypat/lneto/ipv4" "github.com/soypat/lneto/ipv4"
"github.com/soypat/lneto/ipv4/icmpv4" "github.com/soypat/lneto/ipv4/icmpv4"
"github.com/soypat/lneto/ipv6" "github.com/soypat/lneto/ipv6"
"github.com/soypat/lneto/mdns"
"github.com/soypat/lneto/ntp" "github.com/soypat/lneto/ntp"
"github.com/soypat/lneto/tcp" "github.com/soypat/lneto/tcp"
"github.com/soypat/lneto/udp" "github.com/soypat/lneto/udp"
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"testing" "testing"
"github.com/soypat/lneto" "github.com/soypat/lneto"
"github.com/soypat/lneto/dhcpv4" "github.com/soypat/lneto/dhcp/dhcpv4"
"github.com/soypat/lneto/dns" "github.com/soypat/lneto/dns"
"github.com/soypat/lneto/ethernet" "github.com/soypat/lneto/ethernet"
"github.com/soypat/lneto/http/httpraw" "github.com/soypat/lneto/http/httpraw"
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/soypat/lneto" "github.com/soypat/lneto"
"github.com/soypat/lneto/arp" "github.com/soypat/lneto/arp"
"github.com/soypat/lneto/dhcpv4" "github.com/soypat/lneto/dhcp/dhcpv4"
"github.com/soypat/lneto/dns" "github.com/soypat/lneto/dns"
"github.com/soypat/lneto/ethernet" "github.com/soypat/lneto/ethernet"
"github.com/soypat/lneto/internal" "github.com/soypat/lneto/internal"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"time" "time"
"github.com/soypat/lneto" "github.com/soypat/lneto"
"github.com/soypat/lneto/dhcpv4" "github.com/soypat/lneto/dhcp/dhcpv4"
"github.com/soypat/lneto/internal" "github.com/soypat/lneto/internal"
"github.com/soypat/lneto/tcp" "github.com/soypat/lneto/tcp"
) )
+1 -1
View File
@@ -7,9 +7,9 @@ import (
"github.com/soypat/lneto" "github.com/soypat/lneto"
"github.com/soypat/lneto/dns" "github.com/soypat/lneto/dns"
"github.com/soypat/lneto/dns/mdns"
"github.com/soypat/lneto/ethernet" "github.com/soypat/lneto/ethernet"
"github.com/soypat/lneto/ipv4" "github.com/soypat/lneto/ipv4"
"github.com/soypat/lneto/mdns"
"github.com/soypat/lneto/udp" "github.com/soypat/lneto/udp"
) )