filetype

package
v0.0.0-...-8023e94 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileType

type FileType int

FileType represents the language in which a file is written, for the purposes of determining whether it can be used for build graph analysis.

const (
	Unknown FileType = iota
	CMake
	ComponentManifest
	CPP
	Dart
	FIDL
	GN
	Go
	Golden
	Markdown
	Owners
	PortableNetworkGraphics
	ProtocolBuffer
	Python
	RestructuredText
	Rust
	SerializedProtocolBuffer
	Shell
	YAML
)

func KnownFileTypes

func KnownFileTypes() []FileType

KnownFileTypes returns a list of all file types recognized by this library.

func TypeForFile

func TypeForFile(path string) FileType

TypeForFile returns the FileType for a file, based on its path.

Jump to

Keyboard shortcuts

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