properties

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Properties

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

func NewProperties

func NewProperties() *Properties

func NewPropertiesFromFile

func NewPropertiesFromFile(filename string) (*Properties, error)

func NewPropertiesFromMap

func NewPropertiesFromMap(data map[string]string) *Properties

func (*Properties) Add

func (p *Properties) Add(key, value string)

func (*Properties) Delete

func (p *Properties) Delete(key string)

func (*Properties) Get

func (p *Properties) Get(key string) (string, bool)

func (*Properties) Keys

func (p *Properties) Keys() []string

func (*Properties) LoadFromFile

func (p *Properties) LoadFromFile(filename string) error

func (*Properties) LoadFromMap

func (p *Properties) LoadFromMap(data map[string]string)

func (*Properties) Marshal

func (p *Properties) Marshal() (string, error)

func (*Properties) Save

func (p *Properties) Save(filename string) error

func (*Properties) Sort

func (p *Properties) Sort()

Jump to

Keyboard shortcuts

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