jsontime

package module
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 6 Imported by: 0

README

CustomTime

Marshal/unmarshal JSON-To-Time for a multiple string time formats

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONTime

type JSONTime struct{ time.Time }

JSONTime converts a time from a different string formats to time.Time

func (*JSONTime) MarshalBSONValue added in v0.2.11

func (d *JSONTime) MarshalBSONValue() (bsontype.Type, []byte, error)

MarshalBSON outputs BSON for MongoDB.

func (*JSONTime) MarshalDynamoDBAttributeValue added in v0.2.3

func (d *JSONTime) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error

MarshalDynamoDBAttributeValue marshals object to a dynamodb attribute

func (JSONTime) MarshalJSON

func (d JSONTime) MarshalJSON() ([]byte, error)

MarshalJSON outputs JSON.

func (*JSONTime) UnmarshalBSONValue added in v0.2.11

func (d *JSONTime) UnmarshalBSONValue(bsonType bsontype.Type, data []byte) error

MarshalBSON outputs BSON for MongoDB.

func (*JSONTime) UnmarshalDynamoDBAttributeValue added in v0.2.5

func (d *JSONTime) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error

UnmarshalDynamoDBAttributeValue marshals object from a dynamodb attribute

func (*JSONTime) UnmarshalJSON

func (d *JSONTime) UnmarshalJSON(b []byte) error

UnmarshalJSON handles incoming JSON.

Jump to

Keyboard shortcuts

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