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

dart

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTestFile

func IsTestFile(filePath string) bool

IsTestFile reports whether the given Dart file path is a test file.

func ResolveDartProjectImports

func ResolveDartProjectImports(
	absPath string,
	filePath string,
	ext string,
	suppliedFiles map[string]bool,
	contentReader vcs.ContentReader,
) ([]string, error)

Types

type Import

type Import interface {
	URI() string
}

func Imports

func Imports(filePath string) ([]Import, error)

func ParseImports

func ParseImports(sourceCode []byte) ([]Import, error)

type PackageImport

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

PackageImport represents an external dependency (dart:* or package:*)

func (PackageImport) URI

func (p PackageImport) URI() string

type ProjectImport

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

ProjectImport represents an internal project file (relative paths)

func (ProjectImport) URI

func (p ProjectImport) URI() string

type Provider added in v0.27.0

type Provider struct{}

func (Provider) Extensions added in v0.27.0

func (Provider) Extensions() []string

func (Provider) IsTestFile added in v0.27.0

func (Provider) IsTestFile(filePath string, _ vcs.ContentReader) bool

func (Provider) Maturity added in v0.27.0

func (Provider) Maturity() moduleapi.MaturityLevel

func (Provider) Name added in v0.27.0

func (Provider) Name() string

func (Provider) NewResolver added in v0.27.0

func (Provider) NewResolver(ctx *moduleapi.Context, contentReader vcs.ContentReader) moduleapi.Resolver

Jump to

Keyboard shortcuts

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