answer/pkg/token/token.go

10 lines
159 B
Go

package token
import "github.com/google/uuid"
// GenerateToken generate token
func GenerateToken() string {
uid, _ := uuid.NewUUID()
return uid.String()
}