library

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package library contains helper functions

Index

Constants

View Source
const TimeLayout = "2006-01-02T15:04:05.000Z"

Variables

This section is empty.

Functions

This section is empty.

Types

type Datetime

type Datetime struct {
	// contains filtered or unexported fields
}

func NewDatetimeFromTime

func NewDatetimeFromTime(t time.Time) *Datetime

func (*Datetime) GetTime

func (d *Datetime) GetTime() time.Time

func (Datetime) MarshalGQL

func (d Datetime) MarshalGQL(w io.Writer)

func (*Datetime) UnmarshalGQL

func (d *Datetime) UnmarshalGQL(vi interface{}) (err error)

type JSONString

type JSONString string

func (JSONString) MarshalGQL

func (qs JSONString) MarshalGQL(w io.Writer)

func (*JSONString) UnmarshalGQL

func (qs *JSONString) UnmarshalGQL(vi interface{}) (err error)

type QuotedString

type QuotedString string

func (QuotedString) MarshalGQL

func (qs QuotedString) MarshalGQL(w io.Writer)

func (*QuotedString) UnmarshalGQL

func (qs *QuotedString) UnmarshalGQL(vi interface{}) (err error)

Directories

Path Synopsis
db
Package log is a logging package that provides functions to log messages.
Package log is a logging package that provides functions to log messages.

Jump to

Keyboard shortcuts

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