diff --git a/file.go b/file.go index 3145986..fba4394 100644 --- a/file.go +++ b/file.go @@ -134,7 +134,7 @@ func (f *file) SetValue(key string, value interface{}) bool { return setDelimValue(f.Meta, key, value) } -func (f *file) CopyValues(src File) { +func (f *file) InheritValues(src File) { rf := src.(*file) for name, value := range rf.Meta { f.SetValue(name, value) diff --git a/goldsmith.go b/goldsmith.go index ce49920..b071e1f 100644 --- a/goldsmith.go +++ b/goldsmith.go @@ -52,7 +52,7 @@ type File interface { Value(key string) (interface{}, bool) SetValue(key string, value interface{}) bool - CopyValues(src File) + InheritValues(src File) Read(p []byte) (int, error) WriteTo(w io.Writer) (int64, error)