makenowjust/heredoc

GitHub: makenowjust/heredoc

Stars: 179 | Forks: 8

# heredoc [![Version](https://img.shields.io/github/v/release/makenowjust/heredoc)](https://github.com/makenowjust/heredoc/releases) [![Workflow Result](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/dca932be9e000433.svg)](https://github.com/makenowjust/heredoc/actions/workflows/main.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/makenowjust/heredoc/v2.svg)](https://pkg.go.dev/github.com/MakeNowJust/heredoc/v2) ## About Package heredoc provides the here-document with keeping indent. ## Import import "github.com/MakeNowJust/heredoc/v2" ## Example package main import ( "fmt" "github.com/MakeNowJust/heredoc/v2" ) func main() { fmt.Println(heredoc.Doc(` Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ... `)) // Output: // Lorem ipsum dolor sit amet, consectetur adipisicing elit, // sed do eiusmod tempor incididunt ut labore et dolore magna // aliqua. Ut enim ad minim veniam, ... // } ## API Document [heredoc package - github.com/MakeNowJust/heredoc/v2 - pkg.go.dev](https://pkg.go.dev/github.com/MakeNowJust/heredoc/v2) ## License This software is released under the MIT License, see LICENSE.
标签:EVTX分析