1package prototype 2 3import "fmt" 4 5type File struct { 6 name string 7} 8 9func (f *File) print(indentation string) { 10 fmt.Println(indentation + f.name) 11} 12 13func (f *File) clone() Inode { 14 return &File{ 15 name: f.name + "_clone", 16 } 17}