imports

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 3 Imported by: ? 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExactPackage

type ExactPackage struct {
	// Name is the name of the package.
	Name string
	// Version is the version of the package.
	Version string
	// Files is a list of files associated with the package.
	Files []isFileType
}

ExactPackage is a struct that represents a package with its name, version, and files.

func (*ExactPackage) Hash

func (e *ExactPackage) Hash() string

Hash is a struct that represents a hash of a file.

type FileCSS

type FileCSS struct {
	Path      string
	LocalPath string
	Integrity string
}

FileCSS is a struct that represents a CSS file.

type FileJS

type FileJS struct {
	Path      string
	LocalPath string
	Integrity string
}

FileJS is a struct that represents a JavaScript file.

type FileUnkown

type FileUnkown struct {
	Path      string
	LocalPath string
	Integrity string
}

FileUnkown is a struct that represents an unknown file type.

type Require

type Require struct {
	// File is the file path of the package. This is the local path not the full url in the CDN.
	File string
	// Raw is the raw file path of the package.
	Raw string
	// As is the alias for the package.
	As string
}

Require is a struct that represents a package with its name and version.

type Resolver

type Resolver interface {
	// Resolve resolves a package by its name and version.
	Resolve(pkg *ExactPackage) error
}

Resolver is the interface that must be implemented by all resolvers.

type UnimplementedResolver

type UnimplementedResolver struct{}

UnimplementedResolver is a resolver that is not implemented.

func (*UnimplementedResolver) Resolve

func (r *UnimplementedResolver) Resolve(_ *ExactPackage) error

Resolve resolves a package by its name and version.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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