Documentation ¶
Index ¶
- func AbsPathWithExpansion(p string) (string, error)
- func ArgToIndex(arg string) (int64, error)
- func Contains(haystack []string, needle string) bool
- func DirExists(path string) (bool, error)
- func FileExist(fileName string) (bool, error)
- func GetOwnerAndRepo(repoPath, user string) (string, string)
- func IndexOf(haystack []string, needle string) int
- func NormalizeURL(raw string) (*url.URL, error)
- func PathExists(path string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsPathWithExpansion ¶
AbsPathWithExpansion expand path beginning with "~/" to absolute path
func ArgToIndex ¶
ArgToIndex take issue/pull index as string and return int64
func GetOwnerAndRepo ¶
GetOwnerAndRepo return repoOwner and repoName based on relative path and default owner (if not in path)
func NormalizeURL ¶
NormalizeURL normalizes the input with a protocol
func PathExists ¶
PathExists returns whether the given file or directory exists or not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.