copyright

package
v1.7.0-dev-20191004 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

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