Commit Graph

2 Commits (4e79bfc01a78a8a996fd511942c0228b7e78992b)

Author SHA1 Message Date
Daniel Martí 95501f0fcd
testdata: avoid unnecessary deps in init.txt (#166)
We can use println instead of fmt.Println. Similarly, we can avoid
strings.Join by just appending bytes to a []byte.

This is less important now that we have build caching, but it still
helps to do less work overall and link smaller binaries.

Reduces 'go test -run Script/init' from 0.5s to 0.3s on my laptop.

Also, properly format the Go in that file, since the space indentation
wasn't noticed during code review. We might want to enforce gofmt in Go
files within txtar files if this keeps happening.
5 years ago
Andrew LeFevre 6cf1eb6d49
keep init funcs in original order (#165) 5 years ago