generators

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Time

func Time(ctx context.Context, options ...interface{}) (string, error)

ctx type now

func UUID

func UUID(ctx context.Context, options ...interface{}) (string, error)

Types

type TimeType

type TimeType string
var (
	TimeTypeIso8601 TimeType = "iso8601"
	TimeTypeRfc3339 TimeType = "rfc3339"
)

func NewTimeType

func NewTimeType(timeType string) TimeType

func (TimeType) Format

func (t TimeType) Format() string

type UUIDType

type UUIDType string
var (
	UUIDTypeV4   UUIDType = "v4"
	UUIDTypeULID UUIDType = "ulid"
)

func NewUUIDType

func NewUUIDType(uuidType string) UUIDType

Jump to

Keyboard shortcuts

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