Help us shape the future of Go! Take the 2026 Go Developer Survey

resolver

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

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 is a struct used to create a new resolver

func NewBuilder

func NewBuilder() *Builder

NewBuilder creates a new Builder's reference

func (*Builder) Add

func (b *Builder) Add(ctx context.Context, p kindResolver) *Builder

Add will add kindResolvers for building the resolver

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) (*Resolver, error)

Build will create a new instance of a resolver

type Resolver

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

Resolver is a struct containing the resolvers by file kind

func (*Resolver) GetType

func (r *Resolver) GetType(filePath string) model.FileKind

GetType will analyze the filepath to determine which resolver to use

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, filePath string, kind model.FileKind) (model.ResolvedFiles, error)

Resolve will resolve the files according to its type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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