properties

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table interface {
	Names() []string

	GetPropertyOptional(name string, defaultValue string) string

	GetProperty(name string) (string, error)

	SetProperty(name string, value string)

	Export(dst map[string]string) map[string]string

	Import(src map[string]string)
}

Table 表示一个属性的集合

func NewTable

func NewTable(mode safe.Mode) Table

NewTable 新建属性表

func Parse

func Parse(str string, mode safe.Mode) (Table, error)

Parse 解析属性表

Jump to

Keyboard shortcuts

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