v2

package
v2.0.0-...-c082716 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ANSIC       = "ANSIC"
	UnixDate    = "UnixDate"
	RubyDate    = "RubyDate"
	RFC822      = "RFC822"
	RFC822Z     = "RFC822Z"
	RFC850      = "RFC850"
	RFC1123     = "RFC1123"
	RFC1123Z    = "RFC1123Z"
	RFC3339     = "RFC3339"
	RFC3339Nano = "RFC3339Nano"
	Kitchen     = "Kitchen"
	Stamp       = "Stamp"
	StampMilli  = "StampMilli"
	StampMicro  = "StampMicro"
	StampNano   = "StampNano"
)

time format alias

View Source
const (
	Local = "Local"
	UTC   = "UTC"
)

time zone alias

Variables

View Source
var ConfigWithCustomTimeFormat = jsoniter.ConfigCompatibleWithStandardLibrary

Functions

func AddLocaleAlias

func AddLocaleAlias(alias string, locale *time.Location)

func AddTimeFormatAlias

func AddTimeFormatAlias(alias, format string)

func SetDefaultTimeFormat

func SetDefaultTimeFormat(timeFormat string, timeLocation *time.Location)

Types

type CustomTimeExtension

type CustomTimeExtension struct {
	jsoniter.DummyExtension
}

func (*CustomTimeExtension) UpdateStructDescriptor

func (extension *CustomTimeExtension) UpdateStructDescriptor(structDescriptor *jsoniter.StructDescriptor)

Jump to

Keyboard shortcuts

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