- Rename Go module from github.com/cclohmar/ReceiptNext to NextExpense - Update all import paths across 7 Go source files - Update templates (titles, headings, branding) - Update static files (manifest.json, sw.js, CSS) - Update config (Makefile, install.sh, .env.example) - Update README with new name and URLs - Rename service file receiptnext.service -> nextexpense.service - Update install paths, service names, log paths in install.sh
18 lines
366 B
Go
18 lines
366 B
Go
// Package utils provides common utility functions for NextExpense.
|
|
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)
|
|
}
|