util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcLOC

func CalcLOC(dir string, lang string) (int, error)

CalcLOC is a method of the RepositoryService struct. It calculates the lines of code of a directory based on the provided language.

func Clone

func Clone(token string, url string) (string, error)

func Error

func Error(err error) error

func FetchLibrary

func FetchLibrary(url string) (string, error)

FetchLibrary creates a temporary module to fetch a library without affecting the main go.mod.

func FindFile

func FindFile(path, fileName string) (string, error)

func OnlyLetters

func OnlyLetters(s string) bool

func ParseModFile

func ParseModFile(path string) ([]string, error)

ParseModFile reads the go.mod file and returns the libraries that are required by the project.

Types

This section is empty.

Jump to

Keyboard shortcuts

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