Documentation ¶
Index ¶
- func CalcLOC(dir string, lang string) (int, error)
- func Clone(token string, url string) (string, error)
- func Error(err error) error
- func FetchLibrary(url string) (string, error)
- func FindFile(path, fileName string) (string, error)
- func OnlyLetters(s string) bool
- func ParseModFile(path string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcLOC ¶
CalcLOC is a method of the RepositoryService struct. It calculates the lines of code of a directory based on the provided language.
func FetchLibrary ¶
FetchLibrary creates a temporary module to fetch a library without affecting the main go.mod.
func OnlyLetters ¶
func ParseModFile ¶
ParseModFile reads the go.mod file and returns the libraries that are required by the project.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.