Documentation ¶ Index ¶ func Time(ctx context.Context, options ...interface{}) (string, error) func UUID(ctx context.Context, options ...interface{}) (string, error) type TimeType func NewTimeType(timeType string) TimeType func (t TimeType) Format() string type UUIDType func NewUUIDType(uuidType string) UUIDType Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Time ¶ func Time(ctx context.Context, options ...interface{}) (string, error) ctx type now func UUID ¶ func UUID(ctx context.Context, options ...interface{}) (string, error) Types ¶ type TimeType ¶ type TimeType string var ( TimeTypeIso8601 TimeType = "iso8601" TimeTypeRfc3339 TimeType = "rfc3339" ) func NewTimeType ¶ func NewTimeType(timeType string) TimeType func (TimeType) Format ¶ func (t TimeType) Format() string type UUIDType ¶ type UUIDType string var ( UUIDTypeV4 UUIDType = "v4" UUIDTypeULID UUIDType = "ulid" ) func NewUUIDType ¶ func NewUUIDType(uuidType string) UUIDType Source Files ¶ View all Source files time.go uuid.go Click to show internal directories. Click to hide internal directories.