Documentation ¶
Overview ¶
Package properties is used to read or write or modify the properties document.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
Document The properties document in memory.
func New ¶
func New() *Document
New is used to create a new and empty properties document.
It's used to generate a new document.
func (*Document) Accept ¶
Accept Traverse every element of the document, include comment.
The typo parameter special the element type. If typo is '#' or '!' means current element is a comment. If typo is ' ' means current element is a empty or a space line. If typo is '=' or ':' means current element is a key-value pair. The traverse will be terminated if f return false.
Click to show internal directories.
Click to hide internal directories.