Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/makenowjust/heredoc
/ functions
Functions
12 in github.com/makenowjust/heredoc
⨍
Functions
12
◇
Types & classes
1
↓ 2 callers
Function
Doc
Doc returns un-indented string as here-document.
heredoc.go:40
↓ 1 callers
Function
Docf
Docf returns unindented and formatted string as here-document. Formatting is done as for fmt.Printf().
heredoc.go:116
↓ 1 callers
Function
getMinIndent
getMinIndent calculates the minimum indentation in lines, excluding empty lines.
heredoc.go:71
↓ 1 callers
Function
isSpace
isSpace checks whether the rune represents space or not. Only white spcaes (U+0020) and horizontal tabs are treated as space character. It is the same
heredoc.go:61
↓ 1 callers
Function
removeIndentation
removeIndentation removes n characters from the front of each line in lines. Skips first line if skipFirstLine is true, skips empty lines.
heredoc.go:101
Function
D
Shortcut heredoc.Doc.
dot/dot.go:33
Function
Df
Shortcut heredoc.Docf.
dot/dot.go:38
Function
ExampleDoc_lipsum
()
example_test.go:12
Function
ExampleDoc_spec
()
example_test.go:25
Function
ExampleDocf
()
example_test.go:47
Function
TestDoc
(t *testing.T)
heredoc_test.go:45
Function
TestDocf
(t *testing.T)
heredoc_test.go:54