mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
3d86d31b9f
Using strings.Split generates temporary strings for GC to collect. Rewrite the function to not do that. Also, add a second return value, so that the caller can distinguish between an empty value found and no key found cases. Fix the test accordingly. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>