go-rearrange and gorearrange were updated to v.1.0.1
- As one of outputs, indexmode (bool) was added. If this is true, the rearranged result is output as the change of index for the source data. For example, if the source data and rearranged data are
["a", "b", "c"]and
["c", "b", "a"], respectively. The output will become
[2, 1, 0].
By this, the specification for creating applications will expand.
The detail information and how to get this are https://github.com/tanaikech/gorearrange.