yamlx

package
v2.0.0-beta2.0...-6ef21df Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyLookup

type KeyLookup map[string]interface{}

KeyLookup is a lookup of keys available in the parsed yaml

func GetKeyList

func GetKeyList(yml string) (KeyLookup, error)

GetKeyList parses a YAML-formatted file and returns its list of fully-qualified key names. This assumes the yml blob has already been linted and is strictly valid

func (KeyLookup) IsDefined

func (k KeyLookup) IsDefined(s ...string) bool

Jump to

Keyboard shortcuts

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