os

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeChecksumForFS added in v0.34.0

func ComputeChecksumForFS(filesys fs.FS) (string, error)

ComputeChecksumForFS hashes full file contents for deterministic FS invalidation. This is intentionally stronger than metadata-only keys, which are not reliable for embed.FS (file mtime is zero/unknown).

func CopyDir added in v0.36.1

func CopyDir(src, dst string) error

CopyDir recursively copies a directory tree preserving file modes.

func CopyFile

func CopyFile(src, dst string, mode fs.FileMode) error

use the original permission bits so the copy matches the template file

func FileExists added in v0.36.0

func FileExists(path string) bool

FileExists reports whether path exists and points to a regular file.

func SaveFilesToDir

func SaveFilesToDir(dst string, files map[string][]byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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