Closed riking closed 5 years ago
This is documented in the README, albeit obliquely:
Note that your TransformFunc should ensure that one valid key doesn't transform to a subset of another valid key. That is, it shouldn't be possible to construct valid keys that resolve to directory names.
In other words, keys cannot contain os.PathSeparator.
PRs accepted to fix this somehow :)
To reproduce, simply attempt to store a value with a key of a URL and a transform function similar to:
edit: This also happens with no key transform and a key of fmt.Sprintf("%s/%s", categorySlug, articleID)