package
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Oct 17, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Add add kvs to ctx. Add multi times, the last added kvs is at the first place when Get.
往 ctx 上附加 kv 键值对. 多次添加再 Get, 后添加的会出现在前面.
Get get kvs of this ctx.
获取 ctx 上附加的键值对.
Set set kvs to ctx and ignore the previous added.
在 ctx 上设置键值对, 如果之前已经 Add 过会忽略.
Uniq filter the duplicate key of kvs.
if a key apperance more than once, only the first value will retain.
过滤 kvs 中重复的 key. 保留第一次出现的 key-value
[key1, first, key1, second] => [key1, first]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.