kdl

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 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]any) ([]byte, error)

Marshal marshals the given config map to KDL bytes.

func (*KDL) Unmarshal

func (p *KDL) Unmarshal(b []byte) (map[string]any, 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
⌂ 换网址