v0.1.2
v0.1.1 -> v0.1.2
Summary
Add Init function with sync.Once to keychain package and simplify public API by removing per-call service/fallbackPath parameters.
翻譯
新增 keychain Init 函式以 sync.Once 初始化設定,簡化公開 API 移除逐次傳遞的 service/fallbackPath 參數。Changes
REFACTOR
- Replace per-call
serviceandfallbackPathparameters with package-level state initialized viaInitusingsync.Once - Simplify
Get,Set,Deletesignatures to accept only the key (and value forSet) - Convert all internal helpers to read from package-level variables instead of function parameters
翻譯
- 以
Init搭配sync.Once初始化 package 層級狀態,取代逐次傳遞service與fallbackPath參數 - 簡化
Get、Set、Delete簽章,僅接受 key(Set額外接受 value) - 所有內部輔助函式改為讀取 package 層級變數
Files Changed
| File | Status | Tag |
|---|---|---|
filesystem/keychain/init.go |
Added | REFACTOR |
filesystem/keychain/get.go |
Modified | REFACTOR |
filesystem/keychain/set.go |
Modified | REFACTOR |
filesystem/keychain/delete.go |
Modified | REFACTOR |
Generated by SKILL