relaxed

package
v0.0.0-...-21754ba Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags int

Flags specifies flags for kdl-go's relaxed mode which violates the KDL spec but allows extra flexibility in parsing documents

const (
	// NGINXSyntax loosens KDL's grammar to allow nginx-style configuration syntax
	NGINXSyntax Flags = 1 << iota
	// YAMLTOMLAssignments loosens KDL's grammar to allow `=` and `:` between a node name and its first argument
	YAMLTOMLAssignments
	MultiplierSuffixes
)

func (Flags) Permit

func (f Flags) Permit(q Flags) bool

Permit indicates whether a given flag is set

Jump to

Keyboard shortcuts

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