langdetect

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProjectType

func FindProjectType() (ProjectType, *ProjectDetails, error)

FindProjectType detects the programming language/package manager of the current project.

func GetEntryFileOfProject added in v0.2.1

func GetEntryFileOfProject(pt ProjectType) string

GetEntryFileOfProject gets the entry file of the project

Types

type ProjectDetails

type ProjectDetails struct {
	Entrypoint string
	Name       string
}

ProjectDetails holds the details of the current project

type ProjectType

type ProjectType string

ProjectType is the type of project

const (
	// GoModule is the project type for Go modules
	GoModule ProjectType = "GoModule"
	// PythonPoetry is the project type for Python Poetry projects
	PythonPoetry ProjectType = "PythonPoetry"
	// RustCargo is the project type for Rust Cargo projects
	RustCargo ProjectType = "RustCargo"
	// JsNpm is the project type for Javascript NPM projects
	JsNpm ProjectType = "JsNpm"
	// BaseImage is the project type for creating base images
	BaseImage ProjectType = "BaseImg"
	// Unknown is the project type for unknown project types
	Unknown ProjectType = "Unknown"
)

Jump to

Keyboard shortcuts

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