Initial commit: CarrotAssistant backend (Go + Gin + SQLite, OpenAI-compatible agent runtime)
This commit is contained in:
12
internal/server/uuid.go
Normal file
12
internal/server/uuid.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package server
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
// newUUID generates a v4 UUID string for session IDs.
|
||||
func newUUID() (string, error) {
|
||||
u, err := uuid.NewRandom()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return u.String(), nil
|
||||
}
|
||||
Reference in New Issue
Block a user