model

package
v0.0.0-...-99c871e Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorNoteNotFound = Error("NOTE_NOT_FOUND")
)
View Source
const RFC3339Milli = "2006-01-02T15:04:05.000Z07:00"

RFC3339Milli is like time.RFC3339Nano, but with millisecond precision, and fractional seconds do not have trailing zeros removed.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error string

Error is for errors in the business domain. See the constants below.

func (Error) Error

func (e Error) Error() string

type ID

type ID string

func (ID) String

func (i ID) String() string

type Note

type Note struct {
	ID      ID
	Created Time
	Updated Time
	Content string
}

type Time

type Time struct {
	T time.Time
}

func (*Time) Scan

func (t *Time) Scan(src any) error

Scan satisfies sql.Scanner interface.

func (Time) Value

func (t Time) Value() (driver.Value, error)

Value satisfies driver.Valuer interface.

Jump to

Keyboard shortcuts

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