package prototype import "fmt" type file struct { name string } func (f *file) print(indentation string) { fmt.Println(indentation + f.name) } func (f *file) clone() nodeInterface { return &file{name: f.name + "_clone"} }
© The Algorithms 2021