kdl

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package kdl implements a koanf.Parser that parses KDL bytes as conf maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KDL

type KDL struct{}

KDL implements a KDL parser.

func Parser

func Parser() *KDL

Parser returns a KDL Parser.

func (*KDL) Marshal

func (p *KDL) Marshal(o map[string]interface{}) ([]byte, error)

Marshal marshals the given config map to KDL bytes.

func (*KDL) Unmarshal

func (p *KDL) Unmarshal(b []byte) (map[string]interface{}, error)

Unmarshal parses the given KDL bytes.

Jump to

Keyboard shortcuts

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