tree

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package tree builds a worktree of protofiles, every file has /*standard import format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder builds a standardized worktree of protofiles.

func NewBuilder

func NewBuilder(c Config, f Fetcher, r Resolver) *Builder

func (*Builder) AddFile

func (b *Builder) AddFile(ctx context.Context, fqdn string) error

AddFile adds a protofile by its FQDN import to the tree, fetching all its dependencies recursively.

type Config

type Config struct {
	// AbsPathToTree is an absolute path to protofile tree root.
	// This is where your final tree goes to.
	AbsPathToTree string
}

type Fetcher

type Fetcher = fetcher.Fetcher

type Resolver

type Resolver = resolver.Resolver

Resolver resolves imports of non-standard form.

Jump to

Keyboard shortcuts

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