mirror of
https://github.com/tinygo-org/net.git
synced 2026-07-26 08:18:39 +00:00
net: use internal/itoa for Go < 1.26 to fix build with older Go versions
internal/strconv was added in Go 1.26. For older Go versions, use internal/itoa (already present in TinyGo) via a build tag shim. Fixes TinyGo #5332 Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
//go:build go1.26
|
||||
|
||||
package net
|
||||
|
||||
import "internal/strconv"
|
||||
|
||||
func netItoa(i int) string { return strconv.Itoa(i) }
|
||||
Reference in New Issue
Block a user