]> Cypherpunks repositories - gostls13.git/commit
runtime: move atoi to internal/runtime/strconv
authorMichael Pratt <mpratt@google.com>
Wed, 14 May 2025 19:53:58 +0000 (15:53 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 19 May 2025 19:46:19 +0000 (12:46 -0700)
commit76e7bfbb4e3a6114a33c7dba666fdd26698bedc5
treea3c5738900dba5ff5e40f43ddda7dcb14b9ddae2
parentd93bea0e59e51c2d85e69f28f09726b5c9fc81d2
runtime: move atoi to internal/runtime/strconv

Moving to a smaller package allows its use in other internal/runtime
packages.

This isn't internal/strconvlite since it can't be used directly by
strconv.

For #73193.

Change-Id: I6a6a636c9c8b3f06b5fd6c07fe9dd5a7a37d1429
Reviewed-on: https://go-review.googlesource.com/c/go/+/672697
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
14 files changed:
src/cmd/internal/objabi/pkgspecial.go
src/go/build/deps_test.go
src/internal/runtime/math/math.go
src/internal/runtime/strconv/atoi.go [new file with mode: 0644]
src/internal/runtime/strconv/atoi_test.go [new file with mode: 0644]
src/runtime/export_test.go
src/runtime/malloc.go
src/runtime/mgcpacer.go
src/runtime/mheap.go
src/runtime/os_linux.go
src/runtime/proc.go
src/runtime/runtime1.go
src/runtime/string.go
src/runtime/string_test.go