Documentation ¶
Index ¶
- type Properties
- func (p *Properties) Add(key, value string)
- func (p *Properties) Delete(key string)
- func (p *Properties) Get(key string) (string, bool)
- func (p *Properties) Keys() []string
- func (p *Properties) LoadFromFile(filename string) error
- func (p *Properties) LoadFromMap(data map[string]string)
- func (p *Properties) Marshal() (string, error)
- func (p *Properties) Save(filename string) error
- func (p *Properties) Sort()
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) 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()
Click to show internal directories.
Click to hide internal directories.