Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffGoCode ¶
DiffGoCode returns normalized versions of inA and inB using the go formatter so that differences in indentation or trailing spaces are ignored. A diff of inA and inB is also returned.
func DiffStrings ¶
DiffStrings returns the line differences of two strings. Useful for examining how generated code differs from expected code.
func FuncSourceCode ¶
FuncSourceCode returns a string representing the source code of the function provided to it.
func TestFormat ¶
testFormat takes a string representing golang code and attempts to return a formated copy of that code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.