config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 2 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 {
	// contains filtered or unexported fields
}

func FromBytes

func FromBytes(data []byte) *Config

func New

func New(content map[string]Value) *Config

func (*Config) Delete

func (c *Config) Delete(key string)

func (*Config) GetValue

func (c *Config) GetValue(key string) (Value, error)

func (*Config) SetValue

func (c *Config) SetValue(key string, value Value)

type ErrNoSuchKey

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

func (*ErrNoSuchKey) Error

func (e *ErrNoSuchKey) Error() string

type Value

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

func NewValue

func NewValue(content string) *Value

func (*Value) Slice

func (v *Value) Slice() []string

func (*Value) String

func (v *Value) String() string

Jump to

Keyboard shortcuts

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