Skip to content

abi: map go1.27 - #102

Merged
visualfc merged 1 commit into
goplus:mainfrom
visualfc:map_go127
Aug 21, 2026
Merged

abi: map go1.27#102
visualfc merged 1 commit into
goplus:mainfrom
visualfc:map_go127

Conversation

@visualfc

Copy link
Copy Markdown
Member

No description provided.

@fennoai fennoai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: map_go127.go build constraint

Verdict: Looks good. The one-line change adds && !llgo to the build tag, making map_go127.go consistent with its siblings.

What it fixes: type_llgo.go (//go:build llgo) defines its own MapType struct plus the NeedKeyUpdate/HashMightPanic/IndirectKey/IndirectElem methods and map constants. Before this change, an llgo build on a Go 1.27 toolchain would compile both type_llgo.go and map_go127.go, producing duplicate declarations. Adding && !llgo makes the constraints mutually exclusive.

Consistency: map_swiss.go and map_noswiss.go already carry && !llgo; map_go127.go was the sole outlier. After this PR the version-split + llgo-exclusion pattern is uniform across the map family, and the three go-version map files remain mutually exclusive — exactly one map definition applies in every build configuration.

Reviewed for code quality, performance, security, and documentation accuracy — no issues found.

@visualfc
visualfc merged commit fe87323 into goplus:main Aug 21, 2026
21 checks passed
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.

1 participant