From b03a37b208c016781cc85fbcba4018c8b80b4ad9 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 1 Jan 2018 12:32:26 -0800 Subject: [PATCH] wip --- file.go | 2 +- goldsmith.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)