tools

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOS64Unit

func CheckOS64Unit() bool

func CopyFile

func CopyFile(src string, dst string) error

func EnsureDir

func EnsureDir(dir string) (err error)

func Exists

func Exists(path string) bool

func FormatCodeIndent

func FormatCodeIndent(str string, indent int) string

func FormatCodeIndentLn

func FormatCodeIndentLn(str string, indent int) string

func FormatDirPath

func FormatDirPath(op string) string

func GetPWD

func GetPWD() string

func InSlice

func InSlice(items []string, item string) bool

func IndexSlice

func IndexSlice(items []string, item string) int

func IsDir

func IsDir(path string) bool

func IsFile

func IsFile(path string) bool

func IsLinuxOs

func IsLinuxOs() bool

func IsWindowsOs

func IsWindowsOs() bool

func RemoveDirContents

func RemoveDirContents(dir string) error

func RemoveFiles

func RemoveFiles(files []string) error

func RenameFile

func RenameFile(spath string, tpath string) error

func ToFirstCharLower

func ToFirstCharLower(s string) string

func ToFirstLower

func ToFirstLower(str string) string

func ToFirstUpper

func ToFirstUpper(str string) string

func WriteFile

func WriteFile(content string, dirname string, filename string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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