Back to godoc.org

Package hcled

v0.0.0-...-fb75b32
Latest Go to latest

The latest major version is .

Published: Oct 2, 2019 | License: MPL-2.0 | Module: github.com/hashicorp/hcl2

Overview

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

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