utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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