utils

package
v0.0.0-...-56951d6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pair

type Pair[K comparable, V any] struct {
	Key   K `cq-name:"key"`
	Value V `cq-name:"value"`
}

type Single

type Single[V any] struct {
	Name V `cq-name:"name"`
}

type Tag

type Tag struct {
	Value string `cq-name:"value"`
}

type Time

type Time time.Time

func (*Time) Format

func (t *Time) Format(format string) string

func (*Time) IsZero

func (t *Time) IsZero() bool

func (*Time) MarshalJSON

func (t *Time) MarshalJSON() ([]byte, error)

func (*Time) String

func (t *Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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