Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common/maps: Improve append in Scratch #5295

Merged
merged 1 commit into from Oct 8, 2018
Merged

Conversation

bep
Copy link
Member

@bep bep commented Oct 8, 2018

Fixes #5275

@bep bep changed the title common/maps: Improve append in Scratch WIP: common/maps: Improve append in Scratch Oct 8, 2018
@bep bep changed the title WIP: common/maps: Improve append in Scratch common/maps: Improve append in Scratch Oct 8, 2018
This commit consolidates the reflective collections handling in `.Scratch` vs the `tpl` package so they use the same code paths.

This commit also adds support for a corner case where a typed slice is appended to a nil or empty `[]interface{}`.

Fixes gohugoio#5275
@bep bep merged commit 31a8bb8 into gohugoio:master Oct 8, 2018
@github-actions
Copy link

github-actions bot commented Feb 2, 2022

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.Scratch.Add with typed slice ([]int) to untyped slice ([]interface{}) fails
1 participant