xdgini

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 3 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 {
	Groups map[string]*ConfigGroup
	EndRaw *RawLineStyle
}

func ParseConfig

func ParseConfig(data string) *Config

func (*Config) CreateGroup

func (c *Config) CreateGroup(name string) *ConfigGroup

func (*Config) String

func (c *Config) String() string

type ConfigEntry

type ConfigEntry struct {
	Value string
	Raws  []*RawLineStyle
}

func OrderedValue

func OrderedValue(value string, order int) *ConfigEntry

type ConfigGroup

type ConfigGroup struct {
	Entries map[string]*ConfigEntry
	Raws    []*RawLineStyle
}

func (*ConfigGroup) CreateEntry

func (g *ConfigGroup) CreateEntry(key string, value string) *ConfigEntry

type RawLineStyle

type RawLineStyle struct {
	Order            int
	Line             string
	LeadingComments  []string
	TrailingComments []string
}

func WithOrder

func WithOrder(order int) []*RawLineStyle

Jump to

Keyboard shortcuts

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