1 //go:build !integration 2 3 package cmd 4 5 import "github.com/jmhodges/clock" 6 7 // Clock functions similarly to clock.New(), but the returned value can be 8 // changed using the FAKECLOCK environment variable if the 'integration' build 9 // flag is set. 10 // 11 // This function returns the default Clock. 12 func Clock() clock.Clock { 13 return clock.New() 14 } 15