🚚 Rename TS* to Timestamp

This commit is contained in:
Dan Jones 2025-03-14 18:09:07 -05:00
commit 63d538d889
2 changed files with 9 additions and 9 deletions

View file

@ -34,24 +34,24 @@ func Timestamp(opts ...TimestampOption) Generator {
}
}
// TSFormat sets the format for the generated name.
// TimestampFormat sets the format for the generated name.
// Consult time.Time.Format for details on the format.
func TSFormat(format string) TimestampOption {
func TimestampFormat(format string) TimestampOption {
return func(c *timestampConf) {
c.format = format
}
}
// TSTime sets the time for the generated name.
// TimestampTime sets the time for the generated name.
// By default, it uses the current time.
func TSTime(t time.Time) TimestampOption {
func TimestampTime(t time.Time) TimestampOption {
return func(c *timestampConf) {
c.ts = t
}
}
// TSUTC uses the time in UTC, while also stripping the timezone from the format.
func TSUTC() TimestampOption {
// TimestampUTC uses the time in UTC, while also stripping the timezone from the format.
func TimestampUTC() TimestampOption {
return func(c *timestampConf) {
c.utc = true
c.format = FileTimestampNoTZ