feat: local cache

This commit is contained in:
withchao
2024-01-12 17:51:01 +08:00
parent 9908e2c658
commit a81bc3fc23
22 changed files with 245 additions and 316 deletions
+9
View File
@@ -0,0 +1,9 @@
package localcache
func AnyValue[V any](v any, err error) (V, error) {
if err != nil {
var zero V
return zero, err
}
return v.(V), nil
}