craban/server/model/utils.go

13 lines
202 B
Go
Raw Permalink Normal View History

package model
import (
"github.com/google/uuid"
)
2021-09-11 23:06:03 +01:00
func NewString(s string) *string { return &s }
func NewInt(i int) *int { return &i }
func NewUUID() string {
return uuid.New().String()
}