config

package
v1.64.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: GPL-3.0, BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.BoolConfig
	Sections          section.SectionList
	SectionSeparators section.SectionList
}

func ParseConfig

func ParseConfig(in string) (*Config, error)

type YamlConfig

type YamlConfig struct {
	Cfg                     config.BoolConfig `yaml:",inline"`
	SectionStrings          []string          `yaml:"sections"`
	SectionSeparatorStrings []string          `yaml:"sectionseparators"`

	// Since history issue, Golangci-lint needs Analyzer to run and GCI add an Analyzer layer to integrate.
	// The ModPath param is only from analyzer.go, no need to set it in all other places.
	ModPath string `yaml:"-"`
}

func (YamlConfig) Parse

func (g YamlConfig) Parse() (*Config, error)

Jump to

Keyboard shortcuts

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