This commit is contained in:
Alex Yatskov 2018-01-01 12:32:26 -08:00
parent c38395490d
commit b03a37b208
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ func (f *file) SetValue(key string, value interface{}) bool {
return setDelimValue(f.Meta, key, value) return setDelimValue(f.Meta, key, value)
} }
func (f *file) CopyValues(src File) { func (f *file) InheritValues(src File) {
rf := src.(*file) rf := src.(*file)
for name, value := range rf.Meta { for name, value := range rf.Meta {
f.SetValue(name, value) f.SetValue(name, value)

View File

@ -52,7 +52,7 @@ type File interface {
Value(key string) (interface{}, bool) Value(key string) (interface{}, bool)
SetValue(key string, value interface{}) bool SetValue(key string, value interface{}) bool
CopyValues(src File) InheritValues(src File)
Read(p []byte) (int, error) Read(p []byte) (int, error)
WriteTo(w io.Writer) (int64, error) WriteTo(w io.Writer) (int64, error)