model

package
v0.0.0-...-80d7f6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinUserNameLength = 3
	MaxUserNameLength = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID   UserID
	Name UserName
}

func NewUser

func NewUser(name UserName) *User

type UserID

type UserID string

func NewUserID

func NewUserID() UserID

type UserName

type UserName string

func NewUserName

func NewUserName(name string) (UserName, error)

func (UserName) IsValid

func (u UserName) IsValid() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL