Documentation ¶
Overview ¶
Package writers handles the file write operations
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewLinesRegex = regexp.MustCompile(`(?m:\s*$)`)
NewLinesRegex holds the regex to remove newlines from given bytes.Buffer
Functions ¶
func Clear ¶
Clear formats the given source with predefined operations, it removes the new lines too
func WriteFormattedFile ¶
WriteFormattedFile formats the code with goimports and writes the result to the given file, if file doesnt exists, it creates it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.