edtextar

package
v0.241228.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: 0BSD Imports: 2 Imported by: 0

Documentation

Overview

Package edtextar (EffDump TEXT ARchive) encodes/decodes key value string pairs into/from one large string. This is a simplified version of https://github.com/ypsu/textar to avoid the unnecessary dependency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(kvs []keyvalue.KV, sepch byte) string

Format encodes key value pairs into a textar string. sepch is the separator character. Recommended to pass = or -.

func Parse

func Parse(dst []keyvalue.KV, ar string) []keyvalue.KV

Parse decodes a textar string into key value pairs. The decoded entries are appended to dst and then dst is returned. dst can be nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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