language

package
v0.5.28 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MapConfig = map[ProgrammingLanguage]*config.DevContainerConfig{
	None: {
		ImageContainer: config.ImageContainer{
			Image: "mcr.microsoft.com/devcontainers/base:ubuntu",
		},
	},
	JavaScript: {
		ImageContainer: config.ImageContainer{
			Image: "mcr.microsoft.com/devcontainers/javascript-node",
		},
	},
	Python: {
		ImageContainer: config.ImageContainer{
			Image: "mcr.microsoft.com/devcontainers/python:3",
		},
	},
	Java: {
		ImageContainer: config.ImageContainer{
			Image: "mcr.microsoft.com/devcontainers/java",
		},
	},
	Go: {
		ImageContainer: config.ImageContainer{
			Image: "mcr.microsoft.com/devcontainers/go",
		},
	},
	Rust: {
		ImageContainer: config.ImageContainer{
			Image: "mcr.microsoft.com/devcontainers/rust:latest",
		},
	},
	Ruby: {
		ImageContainer: config.ImageContainer{
			Image: "mcr.microsoft.com/devcontainers/ruby",
		},
	},
	PHP: {
		ImageContainer: config.ImageContainer{
			Image: "mcr.microsoft.com/devcontainers/php",
		},
	},
	Cpp: {
		ImageContainer: config.ImageContainer{
			Image: "mcr.microsoft.com/devcontainers/cpp",
		},
	},
	DotNet: {
		ImageContainer: config.ImageContainer{
			Image: "mcr.microsoft.com/devcontainers/dotnet",
		},
	},
}

Functions

func DefaultConfig

func DefaultConfig(startPath string, log log.Logger) *config.DevContainerConfig

Types

type ProgrammingLanguage

type ProgrammingLanguage string
const (
	JavaScript ProgrammingLanguage = "JavaScript"
	TypeScript ProgrammingLanguage = "TypeScript"
	Python     ProgrammingLanguage = "Python"
	Go         ProgrammingLanguage = "Go"
	Cpp        ProgrammingLanguage = "C++"
	C          ProgrammingLanguage = "C"
	DotNet     ProgrammingLanguage = "C#"
	PHP        ProgrammingLanguage = "Php"
	Java       ProgrammingLanguage = "Java"
	Rust       ProgrammingLanguage = "Rust"
	Ruby       ProgrammingLanguage = "Ruby"
	None       ProgrammingLanguage = "None"
)

func DetectLanguage

func DetectLanguage(startPath string) (ProgrammingLanguage, error)

Jump to

Keyboard shortcuts

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