blob: c16627bd55e3d57a9f75b1dfc0060dbdd3f35b3e [file] [log] [blame]
package template
// Basic test of expression refactoring.
// (Types are not important in this case; it could be done with gofmt -r.)
import "time"
func before(t time.Time) time.Duration { return time.Now().Sub(t) }
func after(t time.Time) time.Duration { return time.Since(t) }