Documentation
¶
Index ¶
- Constants
- Variables
- func CopyFileOnUnix(from, to string) error
- func GetEditorEx() string
- func GetHostsFilePath() string
- func InTest(list []string, str string) (r bool)
- func IsLinux() bool
- func IsWindows() bool
- func OpenFileWithEditor(filePath string)
- func PahtIsExist(path string) (bool, error)
- func VerifyUrl(rawUrl string) (r bool)
Constants ¶
View Source
const ( HostsPahtWin = `C:\Windows\System32\drivers\etc\hosts` HostsPath = "/etc/hosts" )
Variables ¶
View Source
var (
IsWin bool
)
Functions ¶
func CopyFileOnUnix ¶
CopyFileOnUnix copies file on Unix-like systems.
func GetHostsFilePath ¶
func GetHostsFilePath() string
func OpenFileWithEditor ¶
func OpenFileWithEditor(filePath string)
func PahtIsExist ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.