langs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Languages = []DefaultSettings{
	{
		Name:  docker.Name,
		Files: docker.Files,
		Regex: &docker.Regex,
	},
	{
		Name:  golang.Name,
		Files: golang.Files,
		Regex: &golang.Regex,
	},
	{
		Name:       js.Name,
		Files:      js.Files,
		JSONFields: &js.JSONFields,
	},
}
View Source
var Supported map[string]*DefaultSettings

Functions

This section is empty.

Types

type Config

type Config struct {
	Regex        []string
	JSONFields   []string
	Name         string
	Files        []string
	Directories  []string
	ExcludeFiles []string `toml:"exclude_files"`
	Enabled      bool
}

Config value populated from the .bump file which override DefaultSettings

func (*Config) GetDirectories

func (c *Config) GetDirectories() []string

type ConfigDecoder

type ConfigDecoder struct {
	Generic    []Config
	Docker     Config
	Go         Config
	JavaScript Config
}

ConfigDecoder used to parse the .bump toml file

type DefaultSettings

type DefaultSettings struct {
	Regex      *[]string
	JSONFields *[]string
	Name       string
	Files      []string
}

DefaultSettings these settings can be overridden by Config

func GetLanguageByName

func GetLanguageByName(langName string) *DefaultSettings

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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