Package goconfig

import "github.com/byte-mug/goconfig"

Overview

Index

Variables

	var EReflectDecodeValueError = errors.New("EReflectDecodeValueError")
 Internal use only.

func Parse

func Parse(b []byte, ch ContentHandler) error

-

type ContentHandler

type ContentHandler interface {
	StartElement(clazz, word []byte) ContentHandler
	EndElement()
	KeyValuePair(key, value []byte)
}

-

func CreateReflectHandler

func CreateReflectHandler(i interface{}) ContentHandler

-

func DefaultContentHandler

func DefaultContentHandler() ContentHandler

-

type DeComment

	type DeComment struct{}
 * This type exists, to test the string removal function.
 * Do not use this type or it's methods to pre-process the input for the parser,
 * because, the parser does this on its own.

func (DeComment) OfBytes

func (d DeComment) OfBytes(s []byte) []byte

-

func (DeComment) OfString

func (d DeComment) OfString(s string) string

-

Dependencies

Directories

PathSynopsis
datatypes/