chore: use Go1.26
Build / Build (push) Has been cancelled

This commit is contained in:
nadoo committed 2026-06-26 00:58:58 +08:00
1 parent e7b12e36a9
commit 38b34030bc
11 files changed
+13 -36

No files matched your search

+1 -1
View File
@@ -443,7 +443,7 @@ func (m *Message) UnmarshalRR(start int, rr *RR) (n int, err error) {
// MarshalDomainTo marshals domain string struct to []byte and write to w.
func MarshalDomainTo(w io.Writer, domain string) (n int, err error) {
nn := 0
for _, seg := range strings.Split(domain, ".") {
for seg := range strings.SplitSeq(domain, ".") {
nn, err = w.Write([]byte{byte(len(seg))})
if err != nil {
return