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" )
============================================ Created by andy pangaribuan on 2021/05/18 Copyright andypangaribuan. All rights reserved. ============================================
time format alias
View Source
const ( Local = "Local" UTC = "UTC" )
time zone alias
Variables ¶
View Source
var ConfigWithCustomTimeFormat = jsoniter.ConfigCompatibleWithStandardLibrary
View Source
var Json *jsonStruct
============================================ Created by andy pangaribuan on 2021/05/18 Copyright andypangaribuan. All rights reserved. ============================================
Functions ¶
func AddLocaleAlias ¶
func AddTimeFormatAlias ¶
func AddTimeFormatAlias(alias, format string)
func SetDefaultTimeFormat ¶
Types ¶
type CustomTimeExtension ¶
type CustomTimeExtension struct {
jsoniter.DummyExtension
}
func (*CustomTimeExtension) UpdateStructDescriptor ¶
func (extension *CustomTimeExtension) UpdateStructDescriptor(structDescriptor *jsoniter.StructDescriptor)
Click to show internal directories.
Click to hide internal directories.