staticmodtimefs

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 3 Imported by: 0

README

static-modtime-fs

A Golang package that wraps a filesystem and provides a constant ModTime of any files and/or directories contained within.

Documentation

Overview

Package staticmodtimefs provides a wrapper around an existing filesystem where the ModTime function of a given fs.File implementation will always return a constant value.

Overriding the default ModTime implementation is mainly useful with embedded and other filesystems which do not support native modification times.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStaticModTimeFS

func NewStaticModTimeFS(f fs.FS, modified time.Time) fs.FS

NewStaticModTimeFS creates a wrapper filesystem around an existing fs.FS or fs.ReadDirFS implementation where any modification times returned are always of the provided constant value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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