package hcled
import "github.com/hashicorp/hcl/v2/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 ¶
- func ContextDefRange(file *hcl.File, offset int) hcl.Range
- func ContextString(file *hcl.File, offset int) string
Functions ¶
func ContextDefRange ¶
func ContextDefRange(file *hcl.File, offset int) hcl.Range
func ContextString ¶
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.
Source Files ¶
- Version
- v2.23.0 (latest)
- Published
- Nov 15, 2024
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 1 day ago –
Tools for package owners.