~foosoft/goldsmith

512dfcb9535efffda9bed658d559bedc2be3123e — Alex Yatskov 9 years ago 8b9d841
Tweaks
2 files changed, 4 insertions(+), 4 deletions(-)

M goldsmith.go
M types.go
M goldsmith.go => goldsmith.go +2 -2
@@ 41,7 41,7 @@ type goldsmith struct {
	wg               sync.WaitGroup
}

func NewGoldsmith(srcPath, dstPath string) (Applier, error) {
func NewGoldsmith(srcPath, dstPath string) (Goldsmith, error) {
	gs := &goldsmith{srcPath: srcPath, dstPath: dstPath}
	if err := gs.scan(); err != nil {
		return nil, err


@@ 94,7 94,7 @@ func (gs *goldsmith) NewFile(path string) File {
	return &file{path, make(map[string]interface{}), nil}
}

func (gs *goldsmith) Apply(p Processor) Applier {
func (gs *goldsmith) Apply(p Processor) Goldsmith {
	s := gs.stage()

	gs.wg.Add(1)

M types.go => types.go +2 -2
@@ 45,7 45,7 @@ type Processor interface {
	Process(ctx Context, input chan File, output chan File) error
}

type Applier interface {
	Apply(p Processor) Applier
type Goldsmith interface {
	Apply(p Processor) Goldsmith
	Complete()
}

Do not follow this link