utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostsPahtWin = `C:\Windows\System32\drivers\etc\hosts`
	HostsPath    = "/etc/hosts"
)

Variables

View Source
var (
	IsWin bool
)

Functions

func CopyFileOnUnix

func CopyFileOnUnix(from, to string) error

CopyFileOnUnix copies file on Unix-like systems.

func GetEditorEx

func GetEditorEx() string

getEx gets default editors on your machine.

func GetHostsFilePath

func GetHostsFilePath() string

func InTest

func InTest(list []string, str string) (r bool)

func IsLinux

func IsLinux() bool

func IsWindows

func IsWindows() bool

func OpenFileWithEditor

func OpenFileWithEditor(filePath string)

func PahtIsExist

func PahtIsExist(path string) (bool, error)

func VerifyUrl

func VerifyUrl(rawUrl string) (r bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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