license

package
v0.0.0-...-cab28d8 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(data []byte) string

Detect detects the license used in the file provided.

Types

type Filer

type Filer struct {
	Data []byte
}

Filer is an implementation the licensedb.Filer interface that returns a single file data previously provided.

func (*Filer) Close

func (f *Filer) Close()

Close implements the licensedb.Filer interface.

func (*Filer) PathsAreAlwaysSlash

func (f *Filer) PathsAreAlwaysSlash() bool

PathsAreAlwaysSlash implements the licensedb.Filer interface.

func (*Filer) ReadDir

func (f *Filer) ReadDir(path string) ([]filer.File, error)

ReadDir implements the licensedb.Filer interface.

func (*Filer) ReadFile

func (f *Filer) ReadFile(path string) (content []byte, err error)

ReadFile implements the licensedb.Filer interface.

Jump to

Keyboard shortcuts

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