Documentation ¶
Index ¶
- Constants
- Variables
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func HasValidXmlProlog(xml string) bool
- func Infof(format string, args ...interface{})
- func Initialize(origin string) error
- func IsValidPath(path string) bool
- func Marshal(Path string, Type string, Value map[string]interface{}, pretty bool) ([]byte, error)
- func MergeFragment(fragment, result map[string]interface{}) error
- func Unmarshal(Path string, Data []byte) (string, map[string]interface{}, error)
- func UnmarshalXmlArray(xmlString string) ([]interface{}, error)
- func UnmarshalXmlObject(xmlString string) (map[string]interface{}, error)
- type ConfFragment
- func (me *ConfFragment) Bytes(pretty bool) ([]byte, error)
- func (me *ConfFragment) ExportBytes(Type string, pretty bool) ([]byte, error)
- func (me *ConfFragment) ExportDropZone(Type string) *Error
- func (me *ConfFragment) Origin() string
- func (me *ConfFragment) Path() string
- func (me ConfFragment) String() string
- func (me *ConfFragment) Type() string
- func (me *ConfFragment) WriteDropZone() *Error
- type Error
Constants ¶
View Source
const ( HashAttr string = "user.hash" OriginAttr string = "user.origin" )
View Source
const ( Silent = uint(iota) LogError LogInfo LogDebug LogAll = LogDebug )
View Source
const ( Compatct = false Pretty = true )
Variables ¶
View Source
var (
LogLevel = LogError
)
Functions ¶
func HasValidXmlProlog ¶
func Initialize ¶
func IsValidPath ¶
func MergeFragment ¶
func UnmarshalXmlArray ¶
func UnmarshalXmlObject ¶
Types ¶
type ConfFragment ¶
type ConfFragment struct {
// contains filtered or unexported fields
}
func EmptyConfFragment ¶
func EmptyConfFragment(confpath string, typ, origin string) (*ConfFragment, error)
func NewConfFragment ¶
func NewConfFragment(confpath string, origin string, data []byte) (*ConfFragment, error)
func (*ConfFragment) ExportBytes ¶
func (me *ConfFragment) ExportBytes(Type string, pretty bool) ([]byte, error)
func (*ConfFragment) ExportDropZone ¶
func (me *ConfFragment) ExportDropZone(Type string) *Error
func (*ConfFragment) Origin ¶
func (me *ConfFragment) Origin() string
func (*ConfFragment) Path ¶
func (me *ConfFragment) Path() string
func (ConfFragment) String ¶
func (me ConfFragment) String() string
func (*ConfFragment) Type ¶
func (me *ConfFragment) Type() string
func (*ConfFragment) WriteDropZone ¶
func (me *ConfFragment) WriteDropZone() *Error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.