hashicorp / hashicorp/hcl

Support Go's "`" literals (plain string)

Open
#302 5 comments 3 reactions 0 assignees View on GitHub
enhancement syntax/native v2
Dominant language
Go
Stars
5.8k
Forks
657
Avg merge
20h 36m
Merged PRs (30d)
6

Description

https://blog.golang.org/strings "UTF-8 and string literals"

```
derp = `${hello}` # should be a string where "${hello}" is the value
```

Basically a way to disable all interpolation and processing, everything between the "`" should be as-in, unprocessed

Was one of the biggest pain points we've had doing https://github.com/seatgeek/hashi-helper where we had to escape a ton HCL sensitive characters in passwords and other inputs

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests. Start with the linked Go string-literal reference and the `${hello}` example; done means backtick-delimited content remains exactly as written and is not interpolated or otherwise processed.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.