testdir

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModCache

func ModCache(dir string) *modcache.Cache

func Tree

func Tree(dir string) (string, error)

Types

type Dir

type Dir struct {
	Files       map[string]string // String files (convenient)
	BFiles      map[string][]byte // Byte files (for images and binaries)
	Modules     modcache.Modules  // name@version[path[data]]
	NodeModules map[string]string // name[version]
}

func New

func New() *Dir

func (*Dir) Hash

func (d *Dir) Hash() (string, error)

func (*Dir) Write

func (d *Dir) Write(dir string, options ...Option) error

Write testdir into dir

type Option

type Option func(o *option)

func WithBackup

func WithBackup(backup bool) Option

func WithSkip

func WithSkip(skips ...func(name string, isDir bool) (skip bool)) Option

Jump to

Keyboard shortcuts

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