Documentation ¶
Index ¶
- Variables
- func BytesToMap(data []byte) (map[string]interface{}, error)
- func Combine(path1 string, path2 ...string) string
- func Copy(a, b string, opts ...copy.Options) error
- func CopyAndRename(files []string, oldPath, newPath, oldName, newName string) error
- func DeleteDirectory(fileName string) error
- func DeleteEmptyDirectories(root string) error
- func Exists(fileName string) bool
- func FilenameToBytes(initial, filename string) ([]byte, error)
- func FilenameToMap(initial, filename string) (map[string]interface{}, error)
- func FromCwd(path1 ...string) (string, error)
- func GetDirectories(filePath string) []string
- func GetDirectoryName(fileName string) string
- func GetFileExtension(fileName string) string
- func GetFileName(fileName string) string
- func GetFiles(filePath string) []string
- func GetRelativePath(directories ...string) string
- func IsEmpty(dir string) (bool, error)
- func IsValidHostname(hostname string) bool
- func OverwriteFile(file *os.File) error
- func ReadAllLines(file *os.File) ([]string, error)
- func ReadAllStringLines(input string) ([]string, error)
- func ReadFile(fileName string) ([]byte, error)
- func Scan(scanner *bufio.Scanner) ([]string, error)
- func SortFileNames(files []string) []string
- func TrimPath(input string) string
- func WriteFile(fileName string, data []byte, perm fs.FileMode) error
- func WriteToFile(file *os.File, entries []string) error
- type EmbeddedFileSystem
Constants ¶
This section is empty.
Variables ¶
View Source
var ReservedHostnames = []string{
"COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9",
"LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9",
"PRN", "AUX", "NUL",
}
Functions ¶
func BytesToMap ¶
func CopyAndRename ¶
func DeleteDirectory ¶
func DeleteEmptyDirectories ¶
func FilenameToBytes ¶
func FilenameToMap ¶
func GetDirectories ¶
func GetDirectoryName ¶
func GetFileExtension ¶
func GetFileName ¶
func GetRelativePath ¶
func IsValidHostname ¶
func OverwriteFile ¶
func ReadAllStringLines ¶
func SortFileNames ¶
Types ¶
type EmbeddedFileSystem ¶
func (EmbeddedFileSystem) BytesToMap ¶
func (e EmbeddedFileSystem) BytesToMap(data []byte) (map[string]interface{}, error)
func (EmbeddedFileSystem) FilenameToBytes ¶
func (e EmbeddedFileSystem) FilenameToBytes(filename string) ([]byte, error)
func (EmbeddedFileSystem) FilenameToMap ¶
func (e EmbeddedFileSystem) FilenameToMap(filename string) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.