copyright

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 1 module, 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

View Source
var (
	External  = []*regexp.Regexp{}
	Generated = []*regexp.Regexp{}
	Normal    = []*regexp.Regexp{}
)

Functions

func Build

func Build(name string, i Info) string

func MatchExternal

func MatchExternal(file []byte) int

func MatchGenerated

func MatchGenerated(file []byte) int

func MatchNormal

func MatchNormal(file []byte) int

func Regexp

func Regexp(name string, i Info, trim bool) *regexp.Regexp

Types

type Info

type Info struct {
	Year    string
	Tool    string
	Version string
	Source  string
}

type Language

type Language struct {
	Name       string
	Extensions []string
	License    string
	Emit       string
	Current    []*regexp.Regexp
	Old        []*regexp.Regexp
}

func FindExtension

func FindExtension(ext string) *Language

func FindLanguage

func FindLanguage(name string) *Language

func (*Language) MatchCurrent

func (l *Language) MatchCurrent(file []byte) int

func (*Language) MatchOld

func (l *Language) MatchOld(file []byte) int

Jump to

Keyboard shortcuts

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