hcl2: github.com/hashicorp/hcl2/hcled Index | Files

package hcled

import "github.com/hashicorp/hcl2/hcled"

Package hcled provides functionality intended to help an application that embeds HCL to deliver relevant information to a text editor or IDE for navigating around and analyzing configuration files.

Index

Package Files

doc.go navigation.go

func ContextDefRange Uses

func ContextDefRange(file *hcl.File, offset int) hcl.Range

func ContextString Uses

func ContextString(file *hcl.File, offset int) string

ContextString returns a string describing the context of the given byte offset, if available. An empty string is returned if no such information is available, or otherwise the returned string is in a form that depends on the language used to write the referenced file.

Package hcled imports 1 packages (graph) and is imported by 3 packages. Updated 2018-12-06. Refresh now. Tools for package owners.