Skip to content

net: use the netItoa shim in tlssock.go - #84

Open
0pcom wants to merge 1 commit into
tinygo-org:mainfrom
0magnet:tlssock-itoa
Open

net: use the netItoa shim in tlssock.go#84
0pcom wants to merge 1 commit into
tinygo-org:mainfrom
0magnet:tlssock-itoa

Conversation

@0pcom

@0pcom 0pcom commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #57.

tlssock.go still imported internal/itoa unconditionally. go1.26 removed that package (its Itoa moved to internal/strconv), and the repo already carries the version-gated netItoa shim (itoa_go126.go / itoa_pre126.go) for exactly this case — tlssock.go was the one remaining direct import, as the issue guessed ("this may just be a silly mistake").

One line changed plus the import removal; tinygo test net passes against go1.27 with the dev compiler.

tlssock.go still imported internal/itoa unconditionally, which go1.26
removed (its Itoa moved to internal/strconv). The repo already has the
version-gated netItoa shim (itoa_go126.go / itoa_pre126.go) for exactly
this; tlssock.go was the one remaining direct import.

Fixes tinygo-org#57.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

internal/itoa package unconditionally used in tlssock.go

1 participant