ctxparse

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Key   string
	Value string
	Line  int
}

Field represents a simple key/value and the 1-based line number where the value appears.

func JSONFields

func JSONFields(b []byte) []Field

JSONFields performs a light pass to extract key/value pairs with approximate line numbers. It attempts a decode; if that fails, it returns nil.

func YAMLFields

func YAMLFields(b []byte) []Field

YAMLFields uses yaml.v3 which provides line numbers for nodes; we flatten simple scalars.

Jump to

Keyboard shortcuts

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