Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecRunMode ¶
ExecRunMode handles the "outrig run" command with AST rewriting
func FindMainFile ¶
FindMainFile searches through the provided Go files and returns the one containing the main() function Returns an error if no main() function is found or if multiple main() functions are found
func RewriteAndCreateTempFile ¶
RewriteAndCreateTempFile parses the given Go file, injects outrig.Init() into main(), and creates a temporary file with the modified code in the provided temp directory. Returns the path to the temporary file.
Types ¶
Click to show internal directories.
Click to hide internal directories.