lastmodified

package
v0.0.0-...-cb2c959 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles getting and setting lastModified dates on a certain path.

func New

func New() Manager

New returns a new last modified manager.

func (Manager) Get

func (m Manager) Get(path string) (lastModified string)

Get retrieves the last modified string for a given URL.

func (Manager) Set

func (m Manager) Set(path, lastModified string)

Set sets the last modified string for a URL.

Jump to

Keyboard shortcuts

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