date_arg

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateArg

type DateArg time.Time

func (*DateArg) MarshalXML

func (d *DateArg) MarshalXML(encoder *xml.Encoder, start xml.StartElement) error

MarshalXML marshals the element to XML. This method is part of the xml.Marshaler interface need by the "xml" package to parse dates present on the command line.

func (*DateArg) Set

func (d *DateArg) Set(s string) error

Set sets parses the string setting the date. This method is part of the flag.Value interface need by the "flag" package to parse dates present on the command line.

func (*DateArg) String

func (d *DateArg) String() string

String returns the string representation of the date. This method is part of the flag.Value interface need by the "flag" package to parse dates present on the command line.

func (*DateArg) UnmarshalXML

func (d *DateArg) UnmarshalXML(decoder *xml.Decoder, start xml.StartElement) error

UnmarshalXML unmarshals the element from XML. This method is part of the xml.Unmarshaler interface need by the "xml" package to parse dates present on the command line.

Jump to

Keyboard shortcuts

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