fileutil

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyVersion

func ApplyVersion(path string) string

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies a file from src to dst. It is able to overwrite existing files that are in use. It does this by writing to a temporary file and then moving it into place.

func Identical

func Identical(file1, file2 string) (bool, error)

Identical reports whether the contents of two files are identical.

func RemoveVersion

func RemoveVersion(filename string) string

RemoveVersion removes the version part from the given filename.

func UpdateVersion

func UpdateVersion(filename string) string

UpdateVersion updates the version of the given filename.

func Version

func Version() string

version returns a version string based on the current time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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