wip
This commit is contained in:
parent
c38395490d
commit
b03a37b208
2
file.go
2
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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user