scalar

package
v0.0.0-...-f8970bf Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalTime

func MarshalTime(t time.Time) graphql.Marshaler

func UnmarshalTime

func UnmarshalTime(v any) (time.Time, error)

Types

type Date

type Date time.Time

func NewDate

func NewDate(t time.Time) Date

NewDate returns a Date from a time.Time

func (Date) MarshalGQLContext

func (d Date) MarshalGQLContext(_ context.Context, w io.Writer) error

func (Date) String

func (d Date) String() string

String returns the Date as a string

func (Date) Time

func (d Date) Time() time.Time

Time returns the Date as a time.Time instance

func (*Date) UnmarshalGQLContext

func (d *Date) UnmarshalGQLContext(_ context.Context, v interface{}) error

Jump to

Keyboard shortcuts

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