docs(blogo,metadata): Map documentation

This commit is contained in:
Guz
2025-01-24 16:41:12 -03:00
parent 2105c099d8
commit c33bd38053

View File

@@ -228,6 +228,9 @@ type Metadata interface {
Delete(key string) error
}
// Type adapter to allow the use of ordinary maps as [Metadata] implementations.
//
// If map is nil, Get always returns [ErrNotFound], Set and Delete return [ErrImmutable].
type Map map[string]any
func (m Map) Get(key string) (any, error) {