github.com/acwpower/studygo@v0.0.0-20220210033106-9f3f6e60fdcc/pkg/mod/golang.org/x/tools@v0.1.1/refactor/eg/testdata/B.template (about) 1 package template 2 3 // Basic test of expression refactoring. 4 // (Types are not important in this case; it could be done with gofmt -r.) 5 6 import "time" 7 8 func before(t time.Time) time.Duration { return time.Now().Sub(t) } 9 func after(t time.Time) time.Duration { return time.Since(t) }