valueobjects

package
v0.0.0-...-db6235c Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.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 DateTime

type DateTime struct {
	Value time.Time
}

func NewDateTime

func NewDateTime(value time.Time) DateTime

func NewDateTimeNow

func NewDateTimeNow() DateTime

func (*DateTime) ToString

func (t *DateTime) ToString() string

type Id

type Id struct {
	Value primitive.ObjectID
}

func NewId

func NewId() Id

func NewIdFromString

func NewIdFromString(value string) (Id, errors.App)

func (*Id) ToString

func (i *Id) ToString() string

Jump to

Keyboard shortcuts

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