Documentation ¶ Index ¶ func Copy(src io.Reader, destPath string) error func EnsureDir(path string) func MarshalToFile(filename string, o interface{}) error func ParseCacheControlExpiration(cc string, expires *time.Time) error type Duration func (d *Duration) UnmarshalText(text []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Copy ¶ added in v0.3.2 func Copy(src io.Reader, destPath string) error func EnsureDir ¶ func EnsureDir(path string) func MarshalToFile ¶ added in v0.2.3 func MarshalToFile(filename string, o interface{}) error MarshalToFile serialises an XML document to a file. func ParseCacheControlExpiration ¶ added in v0.4.0 func ParseCacheControlExpiration(cc string, expires *time.Time) error Types ¶ type Duration ¶ type Duration struct { time.Duration } func (*Duration) UnmarshalText ¶ func (d *Duration) UnmarshalText(text []byte) error Source Files ¶ View all Source files cachecontrol.go copy.go duration.go paths.go xml.go Click to show internal directories. Click to hide internal directories.