merge

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package merge combines symbol graphs from several repositories into one and links repositories that depend on each other through manifest names.

Index

Constants

View Source
const EdgeDependsOn = "depends_on"

EdgeDependsOn links one repo node to another.

View Source
const KindRepo = "repo"

KindRepo is the node kind for a whole repository.

Variables

This section is empty.

Functions

func DefaultName

func DefaultName(g *graph.SymGraph, file string) string

DefaultName picks a repo name from the graph root or the file path.

func Merge

func Merge(inputs []Input, multi *schema.MultiIndex) (*graph.SymGraph, error)

Merge returns one graph holding every node and edge, with IDs prefixed by the repo name so they cannot collide. source_file (File) is kept on every node. When multi is non-nil, repos are linked using its manifest-based cross-repo edges.

Types

type Input

type Input struct {
	Name  string
	Graph *graph.SymGraph
}

Input is one graph to merge under a repo name.

Jump to

Keyboard shortcuts

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