Back to

Package hcled

Latest Go to latest

The latest major version is .

Published: Oct 2, 2019 | License: MPL-2.0 | Module:


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.


func ContextDefRange

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

func ContextString

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier