hashicorp / hashicorp/consul-template
Implement indented here documents <<~EOF like Perl does
Open
- Dominant language
- Go
- Stars
- 4.8k
- Forks
- 801
- Avg merge
- 4h 5m
- Merged PRs (30d)
- 6
Description
### Expected behavior
https://perldoc.perl.org/perlop#Indented-Here-docs
```
template {
data = <<~CONF
F2
CONF
destination = "custom/walk-inside.com.conf"
}
```
Should generate
```
F2
```
### Actual behavior
It generates
```
F2
```
Leading spaces are awkward. I could write without them:
```
template {
data = <
Contributor guide
Research direction
Start by locating the here-document parsing and rendering entry points in the Go repository, then compare the issue's <<~CONF example with the existing <
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100