The Algorithms logoThe Algorithms
About
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"}
}

File

a