repo

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tools provides helper functions used in multiple build tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFilePatternDirs added in v0.4.0

func FindFilePatternDirs(root, pattern string, ignore []string) ([]string, error)

func FindModules

func FindModules(root string, ignore []string) ([]*modfile.File, error)

FindModules returns all Go modules in the file tree rooted at root.

func FindRoot

func FindRoot() (string, error)

FindRoot retrieves the root of the repository containing the current working directory. Beginning at the current working directory (dir), the algorithm checks if joining the ".git" suffix, such as "dir.get", is a valid file. Otherwise, it will continue checking the dir's parent directory until it reaches the repo root or returns an error if it cannot be found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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