utils

package
v0.0.0-...-244c27e Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExistBinary

func ExistBinary(path string) bool

ExistBinary returns if a file exist or not

func Exists

func Exists(path string) bool

Exists returns if a path to a file or directory exist or not

func ExpandPath

func ExpandPath(path string) (string, error)

ExpandPath return Absolute path replace ~ by the path to home directory

func GetFolder

func GetFolder(path string) string

GetFolder return the directory

func IsFolder

func IsFolder(path string) bool

IsFolder return if a path is a directory or not

func ReadLine

func ReadLine(path string, fn func(line 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