datetime

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NowUTC

func NowUTC() time.Time

NowUTC returns the current time in UTC

Types

type Mixin

type Mixin struct {
	mixin.Schema
}

Mixin defines an ent Mixin

func NewMixin

func NewMixin() *Mixin

NewMixin creates a Mixin that includes create_at and updated_at

func (Mixin) Fields

func (m Mixin) Fields() []ent.Field

Fields provides the created_at and updated_at field.

Jump to

Keyboard shortcuts

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