Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parses implements https://www.w3.org/TR/xmlschema-2 # 3.2.7.1 Lexical representation (dateTime) '-'? yyyy '-' mm '-' dd 'T' hh ':' mm ':' ss ('.' s+)? (zzzzzz)? (('+' | '-') hh ':' mm) | 'Z' It's worth to mention that this is the fastest implementation of parser:
$go test -bench . BenchmarkParse-4 5000000 335 ns/op BenchmarkParseRe-4 1000000 1715 ns/op BenchmarkParseRe2-4 1000000 1686 ns/op PASS ok doz.pl/companions/data 6.298s
Types ¶
type CustomTime ¶
func (*CustomTime) MarshalXML ¶
func (c *CustomTime) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (*CustomTime) UnmarshalXML ¶
func (c *CustomTime) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
Click to show internal directories.
Click to hide internal directories.