config

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoEncoder = errors.New("config: no encoder")

ErrNoEncoder for cmd.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config for cmd.

func NewConfig

func NewConfig(name env.Name, arg string, enc *encoding.Map, fs *os.FS) *Config

NewConfig for cmd.

func (*Config) Decode

func (c *Config) Decode(data any) error

Decode for config.

func (*Config) Kind

func (c *Config) Kind() string

Kind of config.

func (*Config) Write

func (c *Config) Write(data []byte, mode os.FileMode) error

Write for config.

Jump to

Keyboard shortcuts

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