util

package
v5.8.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValueXML

type KeyValueXML struct {
	Cont []struct {
		Item []struct {
			Key   string `xml:"key"`
			Value string `xml:"value"`
		} `xml:"item"`
	} `xml:"item"`
}

KeyValueXML resembles the complex struct for getting key/value pairs from XML

type XMLTime

type XMLTime struct {
	time.Time
}

XMLTime is a custom type to decode XML values to time.Time directly

func (*XMLTime) UnmarshalXML

func (x *XMLTime) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML is implemented to be able act as custom XML type it tries to parse time from given elements value

Jump to

Keyboard shortcuts

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