library

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name     string
	Version  string
	As       string
	FileName string
	Raw      string
}

func (*Package) AssetsDir

func (p *Package) AssetsDir(assetsDir string) string

AssetsDir returns the assets dir for the current package

func (*Package) AssetsPath

func (p *Package) AssetsPath(assetsPath string) string

AssetsPath returns the assets path for the current package

func (*Package) CacheDir

func (p *Package) CacheDir(cacheDir string) string

CacheDir returns the cache dir for the current package

func (*Package) HasAssets

func (p *Package) HasAssets(rootDir string, assetsDir string) bool

HasAssets checks if the package has assets on disk

func (*Package) HasCache

func (p *Package) HasCache(rootDir string, cacheDir string) bool

HasCache checks if the package has cache on disk

func (*Package) MakeAssets

func (p *Package) MakeAssets(rootDir string, cacheDir string, assetsDir string) error

MakeAssets copies the cache files to the assets path without the version

func (*Package) MakeCache

func (p *Package) MakeCache(rootDir string, cacheDir string, src string) error

MakeCache retrieves the file from the remote server and stores it locally

Jump to

Keyboard shortcuts

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