Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPrecision uint32 = 0 // second level MaxPrecision uint32 = 9 // nanosecond level )
Variables ¶
View Source
var FormatPrecision = DefaultPrecision
View Source
var ParsePrecision = DefaultPrecision
View Source
var Pedantic uint32
Functions ¶
This section is empty.
Types ¶
type NumericDate ¶
NumericDate represents the date format used in the 'nbf' claim
func (*NumericDate) Accept ¶
func (n *NumericDate) Accept(v interface{}) error
func (*NumericDate) Get ¶
func (n *NumericDate) Get() time.Time
func (*NumericDate) MarshalJSON ¶
func (n *NumericDate) MarshalJSON() ([]byte, error)
MarshalJSON translates from internal representation to JSON NumericDate See https://tools.ietf.org/html/rfc7519#page-6
func (NumericDate) String ¶ added in v2.0.1
func (n NumericDate) String() string
func (*NumericDate) UnmarshalJSON ¶
func (n *NumericDate) UnmarshalJSON(data []byte) error
type StringList ¶
type StringList []string
func (*StringList) Accept ¶
func (l *StringList) Accept(v interface{}) error
func (StringList) Get ¶
func (l StringList) Get() []string
func (*StringList) UnmarshalJSON ¶
func (l *StringList) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.