shared

package
v0.0.0-...-5f5f07c Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Search(nv *[]NamedValue, name string) string

Search - returns the first value with name in Namevalue array or ""

func SearchAll

func SearchAll(nv *[]NamedValue, name string) []string

SearchAll returns a slice of NamedValues for all values with the specified name

func TimeParse

func TimeParse(t TimeStr) (time.Time, error)

TimeParse - generate a time.Time from the passed in TimeStr

Types

type NamedValue

type NamedValue struct {
	ValueName string `xml:"valueName"`
	Value     string `xml:"value"`
}

NamedValue -

type TimeStr

type TimeStr string

TimeStr - is a date/time in the CAPTimeFormat format

func Time

func Time(t time.Time) TimeStr

Time - generate a new TimeStr from the passed in time.Time object

Jump to

Keyboard shortcuts

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