vo

package
v0.0.0-...-453b34a Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DatetimeLayout = "2006-01-02T15:04:05Z"
	DateLayout     = "2006-01-02"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category int

Category value object

const (
	Own Category = iota
	Like
)

func NewCategory

func NewCategory(value int) (*Category, error)

func (*Category) Equal

func (c *Category) Equal(other *Category) bool

func (*Category) ToString

func (c *Category) ToString() string

func (*Category) Value

func (c *Category) Value() int

type DateTime

type DateTime struct {
	Value time.Time
}

func NewDateTime

func NewDateTime(value string) (*DateTime, error)

func (*DateTime) Equal

func (d *DateTime) Equal(other *DateTime) bool

func (*DateTime) ToDateString

func (d *DateTime) ToDateString() string

func (*DateTime) ToString

func (d *DateTime) ToString() string

type URL

type URL struct {
	Value string
}

func NewURL

func NewURL(urlString string) (*URL, error)

func (*URL) Equal

func (u *URL) Equal(other *URL) bool

Jump to

Keyboard shortcuts

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