tools

package module
Version: v0.0.0-...-2a02a55 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package tools provides helper functions used in scripts within the internal/tools module, as well as imports needed for a build with the "tools" build tag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintModFiles

func PrintModFiles(w io.Writer, mFiles []*modfile.File) error

Types

type Repo

type Repo string

Repo represents a git repository.

func FindRepoRoot

func FindRepoRoot() (Repo, error)

FindRepoRoot 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.

func (Repo) FindModules

func (r Repo) FindModules() ([]*modfile.File, error)

FindModules returns all Go modules contained in Repo r.

Source Files

Directories

Path Synopsis
Package semconvkit is used to generate opentelemetry-go specific semantic convention code.
Package semconvkit is used to generate opentelemetry-go specific semantic convention code.

Jump to

Keyboard shortcuts

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