Documentation ¶
Index ¶
- Constants
- func RecreateKDLObj(kdlObj KDLObject) (string, error)
- func RecreateString(s string) string
- type KDLBool
- type KDLDefault
- type KDLDocument
- type KDLErrorType
- type KDLNode
- type KDLNull
- type KDLNumber
- type KDLObject
- type KDLObjects
- type KDLObjectsMap
- type KDLRawString
- type KDLString
- type KDLType
- type KDLValue
- type KDLValuesMap
Constants ¶
View Source
const ( KDLEmptyArray = "Array is empty" KDLDifferentKey = "All keys of KDLObject to convert to document should be the same" KDLInvalidKeyChar = "Invalid character for key" KDLInvalidNumValue = "Invalid numeric value" KDLInvalidSyntax = "Invalid syntax" KDLInvalidType = "Invalid KDLType" KDLUnexpectedEOF = "Unexpected end of file" )
View Source
const ( KDLBoolType = "kdl_bool" KDLNumberType = "kdl_number" KDLStringType = "kdl_string" KDLRawStringType = "kdl_raw_string" KDLDocumentType = "kdl_document" KDLNullType = "kdl_null" KDLDefaultType = "kdl_default" KDLObjectsType = "kdl_objects" )
Variables ¶
This section is empty.
Functions ¶
func RecreateKDLObj ¶
func RecreateString ¶
Types ¶
type KDLDefault ¶
type KDLDefault struct {
// contains filtered or unexported fields
}
func NewKDLDefault ¶
func NewKDLDefault(key string) KDLDefault
func (KDLDefault) GetKey ¶
func (kdlNode KDLDefault) GetKey() string
func (KDLDefault) GetValue ¶
func (kdlNode KDLDefault) GetValue() KDLValue
type KDLDocument ¶
type KDLDocument struct {
// contains filtered or unexported fields
}
func ConvertToDocument ¶
func ConvertToDocument(objs []KDLObject) (KDLDocument, error)
func NewKDLDocument ¶
func NewKDLDocument(key string, value []KDLValue) KDLDocument
func (KDLDocument) GetKey ¶
func (kdlNode KDLDocument) GetKey() string
func (KDLDocument) GetValue ¶
func (kdlNode KDLDocument) GetValue() KDLValue
type KDLErrorType ¶
type KDLErrorType string
type KDLNumber ¶
type KDLNumber struct {
// contains filtered or unexported fields
}
func NewKDLNumber ¶
type KDLObjects ¶
type KDLObjects struct {
// contains filtered or unexported fields
}
func NewKDLObjects ¶
func NewKDLObjects(key string, objects []KDLObject) KDLObjects
func ParseFile ¶
func ParseFile(fullfilepath string) (KDLObjects, error)
func ParseReader ¶
func ParseReader(reader *bufio.Reader) (KDLObjects, error)
func ParseString ¶
func ParseString(toParse string) (KDLObjects, error)
func (KDLObjects) GetKey ¶
func (kdlNode KDLObjects) GetKey() string
func (KDLObjects) GetValue ¶
func (kdlNode KDLObjects) GetValue() KDLValue
func (KDLObjects) ToObjMap ¶
func (kdlObjs KDLObjects) ToObjMap() KDLObjectsMap
func (KDLObjects) ToValueMap ¶
func (kdlObjs KDLObjects) ToValueMap() KDLValuesMap
type KDLObjectsMap ¶
type KDLRawString ¶
type KDLRawString struct {
// contains filtered or unexported fields
}
func NewKDLRawString ¶
func NewKDLRawString(key string, value string) KDLRawString
func (KDLRawString) GetKey ¶
func (kdlNode KDLRawString) GetKey() string
func (KDLRawString) GetValue ¶
func (kdlNode KDLRawString) GetValue() KDLValue
type KDLString ¶
type KDLString struct {
// contains filtered or unexported fields
}
func NewKDLString ¶
type KDLValue ¶
type KDLValue struct { Bool bool Number big.Float String string RawString string Document []KDLValue Objects []KDLObject Type KDLType // contains filtered or unexported fields }
func (KDLValue) RecreateKDL ¶
type KDLValuesMap ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.