common

package
v0.0.0-...-f7f13f8 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CDToRootDir

func CDToRootDir() error

CDToRootDir change directory to git root dir

func CreateDir

func CreateDir(dirPath string) error

CreateDir creates dir if does not exist. The created dir will have the permission bits as 0777, which means everyone can read/write/execute it.

func CreateDirWithFileMode

func CreateDirWithFileMode(dirPath string, perm os.FileMode) error

CreateDirWithFileMode creates dir if does not exist. The created dir will have the permission bits as perm, which is the standard Unix rwxrwxrwx permissions.

func GetRootDir

func GetRootDir() (string, error)

GetRootDir gets directory of git root

Types

This section is empty.

Jump to

Keyboard shortcuts

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