compiler

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler string
const (
	CompilerUnknown Compiler = ""
	CompilerGCC     Compiler = "gcc"
	CompilerGHC     Compiler = "ghc"
	CompilerGo      Compiler = "go"
	CompilerRustC   Compiler = "rustc"
	CompilerOCaml   Compiler = "ocaml"
	CompilerNim     Compiler = "nim"
	CompilerTCC     Compiler = "tcc"
)

func (Compiler) String

func (c Compiler) String() string

type Info

type Info struct {
	Compiler Compiler
	Language Language
	Version  string
}

func Identify

func Identify(e *elf.File) Info

func (Info) String

func (c Info) String() string

type Language

type Language string
const (
	LanguageUnknown Language = ""
	LanguageGo      Language = "Go"
	LanguageCCPP    Language = "C/C++"
	LanguageRust    Language = "Rust"
	LanguageHaskell Language = "Haskell"
	LanguageOCaml   Language = "OCaml"
	LanguageNim     Language = "Nim"
)

func (Language) String

func (l Language) String() string

Jump to

Keyboard shortcuts

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