util

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathExist

func PathExist(name string) bool

PathExist check if file exists

func ReadFile

func ReadFile(path string) ([]byte, error)

ReadFile read file as []byte

func SplitCommand added in v1.1.0

func SplitCommand(cmd string) (name string, arg []string)

SplitCommand to name, arg

command := "ls -l -a -h"
name, arg := SplitCommand(command)
fmt.Println(name)
fmt.Println(arg)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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