vfsgen

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsistentModTimeFile

type ConsistentModTimeFile struct {
	http.File
}

func (ConsistentModTimeFile) Stat

func (f ConsistentModTimeFile) Stat() (os.FileInfo, error)

type ConsistentModTimeFileInfo

type ConsistentModTimeFileInfo struct {
	os.FileInfo
}

func (ConsistentModTimeFileInfo) ModTime

func (f ConsistentModTimeFileInfo) ModTime() time.Time

type ConsistentModTimeFileSystem

type ConsistentModTimeFileSystem struct {
	HttpFS http.FileSystem
}

consistentModTimeFileSystem is a wrapper for http.FileSystem. The value returned by the ModTime() function is the 'empty' time value. In doing so, it ensures that the output of vfsgen.Generate(...) is consistent with regards to the time at which Generate(...) is run.

func (ConsistentModTimeFileSystem) Open

Jump to

Keyboard shortcuts

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