Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitDir ¶
GetGitDir finds a directory containing .git/ starting from the current directory and going up.
func GetGithubDir ¶
func Root ¶
Root takes an arbitrary path inside a workspace returns the path to the logical root of the workspace from which workspace-absolute paths are resolved. In the case of github repos, it is the part of the input path up to and including "/github.com/" (without trailing slash). If no well-known workspace identification method works, it returns a directory part of the input path. TODO(salikh): Implement looking up for $DIR/.git.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.