osutils

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var T_ = func(msgId string) string { return msgId }

T_ is the string translation hook, defaults to identity

Functions

func AppendFile

func AppendFile(sourcePath, destPath string, perm fs.FileMode) error

func Capitalize

func Capitalize(s string) string

func Clean

func Clean(path string) error

func Copy

func Copy(sourcePath, destPath string, replace bool) error

func GetEnvMap

func GetEnvMap() map[string]string

func IsURL

func IsURL(str string) bool

func Move

func Move(sourcePath, destPath string, replace bool) error

func PrependFile

func PrependFile(sourcePath, destPath string, perm fs.FileMode) error

func SetTranslator

func SetTranslator(fn func(msgId string) string)

SetTranslator sets the translation function

func StringToFileMode

func StringToFileMode(s string) (os.FileMode, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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