package sourceinfo

import "github.com/google/gnostic/metrics/sourceinfo"

Index

Functions

func FindNode

func FindNode(filename string, keys []string, token string) (*yaml.Node, error)

FindNode returns a node object pointing to the given token in a yaml file. The node contains information such as the string value, line number, bordering commments, etc.

Source Files

sourceinfo.go

Version
v0.7.0 (latest)
Published
Aug 25, 2023
Platform
linux/amd64
Imports
4 packages
Last checked
1 week ago

Tools for package owners.