fileinfo

package
v0.0.0-...-ca61a64 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Language   string
	License    *License
	SkipReason string
}

type InfoArgs

type InfoArgs struct {
	FilePath string
	Lines    [][]byte
	Content  []byte
}

type License

type License struct {
	Name       string
	Confidence float32
}

License holds details about detected license

type Process

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

func New

func New() *Process

func (*Process) GetInfo

func (s *Process) GetInfo(args InfoArgs) (res Info, skipReason string)

Jump to

Keyboard shortcuts

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