value

package
v0.0.0-...-2af345c Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	Value string
}

func NewEmailFromString

func NewEmailFromString(email string) (*Email, error)

func (*Email) Change

func (e *Email) Change(email string) error

func (Email) IsValid

func (e Email) IsValid() error

type State

type State struct {
	Value bool
}

func NewStateFromString

func NewStateFromString(state string) (*State, error)

func (*State) Activate

func (u *State) Activate()

func (*State) Deactivate

func (u *State) Deactivate()

func (State) ToString

func (u State) ToString() string

type UserID

type UserID struct {
	Value string
}

func NewUserIDFromString

func NewUserIDFromString(id string) (*UserID, error)

type Username

type Username struct {
	Value string
}

func NewUsernameFromString

func NewUsernameFromString(username string) (*Username, error)

func (Username) IsValid

func (u Username) IsValid() error

func (*Username) Rename

func (u *Username) Rename(username string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳