Datatypes

Duration represents the elapsed time between two instants as an int64 microsecond count.

Copy
type Duration int64
Copy
func (d Duration) String() string

LocalDate is a date without a time zone. https://www.edgedb.com/docs/datamodel/scalars/datetime/

Copy
type LocalDate struct {
    // contains filtered or unexported fields
}
Copy
func NewLocalDate(year int, month time.Month, day int) LocalDate

NewLocalDate returns a new LocalDate

Copy
func (d LocalDate) String() string

LocalDateTime is a date and time without timezone. https://www.edgedb.com/docs/datamodel/scalars/datetime/

Copy
type LocalDateTime struct {
    // contains filtered or unexported fields
}
Copy
func NewLocalDateTime(
    year int, month time.Month, day, hour, minute, second, microsecond int,
) LocalDateTime

NewLocalDateTime returns a new LocalDateTime

Copy
func (dt LocalDateTime) String() string

LocalTime is a time without a time zone. https://www.edgedb.com/docs/datamodel/scalars/datetime/

Copy
type LocalTime struct {
    // contains filtered or unexported fields
}
Copy
func NewLocalTime(hour, minute, second, microsecond int) LocalTime

NewLocalTime returns a new LocalTime

Copy
func (t LocalTime) String() string

UUID a universally unique identifier https://www.edgedb.com/docs/datamodel/scalars/uuid#type::std::uuid

Copy
type UUID [16]byte
Copy
func ParseUUID(s string) (UUID, error)

ParseUUID parses s into a UUID or returns an error.

Copy
func (id UUID) MarshalText() ([]byte, error)

MarshalText returns the id as a byte string.

Copy
func (id UUID) String() string
Copy
func (id *UUID) UnmarshalText(b []byte) error

UnmarshalText unmarshals the id from a string.

Light
Dark
System