diff --git a/file.go b/file.go index 2c401b4..78c9fa2 100644 --- a/file.go +++ b/file.go @@ -52,6 +52,10 @@ func (f *file) Property(key, def string) interface{} { } func (f *file) SetProperty(key string, value interface{}) { + if f.meta == nil { + f.meta = make(map[string]interface{}) + } + f.meta[key] = value }