resolve

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveEmbed

func ResolveEmbed(dir string, patterns []string) ([]string, error)

ResolveEmbed resolves //go:embed patterns and returns only the file list. For use by go mod vendor to find embedded files it should copy into the vendor directory. TODO(#42504): Once go mod vendor uses load.PackagesAndErrors, just call (*Package).ResolveEmbed

func ToEmbedCfg

func ToEmbedCfg(dir string, files []string, pmap map[string][]string) ([]byte, error)

Types

type EmbedError

type EmbedError struct {
	Pattern string
	Err     error
}

An EmbedError indicates a problem with a go:embed directive.

func (*EmbedError) Error

func (e *EmbedError) Error() string

func (*EmbedError) Unwrap

func (e *EmbedError) Unwrap() error

Jump to

Keyboard shortcuts

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