- Replace events+expenses with flat purchases table - Add warranty_months, return_days, product_name fields - Remove currency conversion, CSV/PDF reporting, event filing - Simplify auth (no onboarding/department/profile) - Update AI extraction prompts for product/warranty info - Update all branding: templates, install.sh, Makefile, service file
18 lines
366 B
Go
18 lines
366 B
Go
// Package utils provides common utility functions for ReceiptNext.
|
|
package utils
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// NewUUID generates a new UUID v4 string.
|
|
func NewUUID() string {
|
|
return uuid.New().String()
|
|
}
|
|
|
|
// Timestamp returns the current UTC time formatted as RFC3339.
|
|
func Timestamp() string {
|
|
return time.Now().UTC().Format(time.RFC3339)
|
|
}
|