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", }, }, }
View Source
var MapLanguages = map[ProgrammingLanguage]ProgrammingLanguage{ TypeScript: JavaScript, C: Cpp, }
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)
Click to show internal directories.
Click to hide internal directories.