utils

package
v0.0.0-...-6dd38b0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostname

func GetHostname() string

GetHostname returns the hostname name of the current computer.

*If there is an error, it returns a default string.

func GetUserHomeDir

func GetUserHomeDir() string

GetUserHomeDir returns the home directory of the current user.

func IsGitRepository

func IsGitRepository(pathdir string) bool

IsGitRepository returns if the path, given as an argument, is a git repository or not.

*This function returns a boolean value: true if the pathdir pointed to a git repository, else false.

func SliceIndex

func SliceIndex(limit int, predicate func(i int) bool) int

SliceIndex returns the index of the element searched.

*If the element is not in the slice, the function returns -1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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