hugo/common/collections
Bjørn Erik Pedersen 23f48c300c
common/maps: Improve append in Scratch
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 #5275
2018-10-10 12:21:51 +02:00
..
append.go common/maps: Improve append in Scratch 2018-10-10 12:21:51 +02:00
append_test.go common/maps: Improve append in Scratch 2018-10-10 12:21:51 +02:00
collections.go common/maps: Improve append in Scratch 2018-10-10 12:21:51 +02:00
slice.go common/maps: Improve append in Scratch 2018-10-10 12:21:51 +02:00
slice_test.go common/maps: Improve append in Scratch 2018-10-10 12:21:51 +02:00